public IHttpActionResult GetDataWithIDs(DTO.Search searchInput) { if (!bLL.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, ModuleAction.CanRead)) { return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED))); } object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "getdata", searchInput.Filters, out Notification notification); return(Ok(new ReturnData <object> { Data = data, Message = notification })); }
public IHttpActionResult GetPricePreviousSeason(DTO.Search filters) { if (!bLL.CanPerformAction(ControllerContext.GetAuthUserId(), moduleCode, ModuleAction.CanUpdate)) { return(InternalServerError(new Exception(Properties.Resources.NOT_AUTHORIZED))); } object data = executor.CustomFunction(ControllerContext.GetAuthUserId(), "GetPricePreviousSeason", filters.Filters, out Notification notification); return(Ok(new ReturnData <object> { Data = data, Message = notification })); }