Removed unused readOnly property on return response
This commit is contained in:
@@ -66,7 +66,7 @@ namespace AyaNova.Api.Controllers
|
||||
//Do the search
|
||||
var SearchResults = await Search.DoSearchAsync(ct, UserTranslationIdFromContext.Id(HttpContext.Items), UserRolesFromContext.Roles(HttpContext.Items), searchParams);
|
||||
|
||||
return Ok(ApiOkResponse.Response(SearchResults, true));
|
||||
return Ok(ApiOkResponse.Response(SearchResults));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -96,7 +96,7 @@ namespace AyaNova.Api.Controllers
|
||||
var res = await Search.GetInfoAsync(ct, UserTranslationIdFromContext.Id(HttpContext.Items),
|
||||
UserRolesFromContext.Roles(HttpContext.Items), UserIdFromContext.Id(HttpContext.Items), phrase, max, ayaType, id);
|
||||
|
||||
return Ok(ApiOkResponse.Response(res, true));
|
||||
return Ok(ApiOkResponse.Response(res));
|
||||
}
|
||||
|
||||
|
||||
@@ -133,8 +133,8 @@ namespace AyaNova.Api.Controllers
|
||||
case AyaType.WorkOrderItemScheduledUser:
|
||||
case AyaType.WorkOrderItemTask:
|
||||
case AyaType.WorkOrderItemTravel:
|
||||
AyaTypeId TypeId=await WorkOrderBiz.GetAncestor(ayaType, id, ct);
|
||||
return Ok(ApiOkResponse.Response(new {AyaType=TypeId.ObjectTypeAsInt,Id=TypeId.ObjectId}, true));
|
||||
AyaTypeId TypeId = await WorkOrderBiz.GetAncestor(ayaType, id, ct);
|
||||
return Ok(ApiOkResponse.Response(new { AyaType = TypeId.ObjectTypeAsInt, Id = TypeId.ObjectId }));
|
||||
default:
|
||||
return BadRequest(new ApiErrorResponse(ApiErrorCode.VALIDATION_INVALID_VALUE, "ayaType", "Only types with ancestors are valid"));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user