This commit is contained in:
@@ -46,8 +46,10 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Post search parameters
|
||||
///
|
||||
/// Required roles: Any
|
||||
/// Required roles: Any
|
||||
/// MaxResults defaults to 500
|
||||
/// MaxResults = 0 returns all results
|
||||
/// There is no paging as this is a dynamic response
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="searchParams"></param>
|
||||
@@ -69,29 +71,6 @@ namespace AyaNova.Api.Controllers
|
||||
var SearchResults = await Search.DoSearch(ct, UserLocaleIdFromContext.Id(HttpContext.Items), UserRolesFromContext.Roles(HttpContext.Items), searchParams);
|
||||
|
||||
return Ok(new ApiOkResponse(SearchResults));
|
||||
|
||||
// if (o == null)
|
||||
// {
|
||||
// //error return
|
||||
// return BadRequest(new ApiErrorResponse(biz.Errors));
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
|
||||
// //save to get Id
|
||||
// await ct.SaveChangesAsync();
|
||||
|
||||
// //Log now that we have the Id
|
||||
// EventLogProcessor.AddEntry(new Event(biz.userId, o.Id, AyaType.Widget, AyaEvent.Created), ct);
|
||||
// await ct.SaveChangesAsync();
|
||||
|
||||
// //this will save the context as part of it's operations
|
||||
// Search.ProcessNewObjectKeywords(ct, UserLocaleIdFromContext.Id(HttpContext.Items), o.Id, AyaType.Widget, o.Name, o.Notes, o.Name);
|
||||
|
||||
|
||||
// //return success and link
|
||||
// return CreatedAtAction("GetWidget", new { id = o.Id }, new ApiCreatedResponse(o));
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user