changed all lambda experssion variables to z from various where appropriate
This commit is contained in:
@@ -102,7 +102,7 @@ namespace AyaNova.Api.Controllers
|
||||
var o = await biz.PutAsync(updatedObject);//In future may need to return entire object, for now just concurrency token
|
||||
if (o == null)
|
||||
{
|
||||
if (biz.Errors.Exists(m => m.Code == ApiErrorCode.CONCURRENCY_CONFLICT))
|
||||
if (biz.Errors.Exists(z => z.Code == ApiErrorCode.CONCURRENCY_CONFLICT))
|
||||
return StatusCode(409, new ApiErrorResponse(biz.Errors));
|
||||
else
|
||||
return BadRequest(new ApiErrorResponse(biz.Errors));
|
||||
@@ -129,7 +129,7 @@ namespace AyaNova.Api.Controllers
|
||||
// return BadRequest(new ApiErrorResponse(ModelState));
|
||||
// }
|
||||
|
||||
// var o = await ct.User.SingleOrDefaultAsync(m => m.Id == id);
|
||||
// var o = await ct.User.SingleOrDefaultAsync(z => z.Id == id);
|
||||
|
||||
// if (o == null)
|
||||
// {
|
||||
@@ -238,7 +238,7 @@ namespace AyaNova.Api.Controllers
|
||||
//Instantiate the business object handler
|
||||
UserBiz biz = UserBiz.GetBiz(ct, HttpContext);
|
||||
|
||||
var dbObj = await ct.User.SingleOrDefaultAsync(m => m.Id == id);
|
||||
var dbObj = await ct.User.SingleOrDefaultAsync(z => z.Id == id);
|
||||
if (dbObj == null)
|
||||
{
|
||||
return NotFound(new ApiErrorResponse(ApiErrorCode.NOT_FOUND));
|
||||
@@ -261,7 +261,7 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
private bool UserExists(long id)
|
||||
{
|
||||
return ct.User.Any(e => e.Id == id);
|
||||
return ct.User.Any(z => z.Id == id);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user