public IHttpActionResult Search(string query) { if (!string.IsNullOrEmpty(query) && query.Length > 1) { return(Ok(ProcessCategoryService.Search(query))); } else { return(Ok(new List <SimpleSearchResult>())); } }
public IHttpActionResult Delete(int id) { ProcessCategoryService.Delete(id); return(Ok()); }
public IHttpActionResult Put([FromBody] Contracts.ProcessCategory.UpdateProcessCategory update) { ProcessCategoryService.Update(update); return(Ok()); }
public IHttpActionResult Post([FromBody] Contracts.ProcessCategory.CreateProcessCategory create) { ProcessCategoryService.Create(create); return(Ok()); }
public IHttpActionResult Get(int id) { var result = ProcessCategoryService.GetSingle(id); return(Ok(result)); }
public IHttpActionResult Get([FromUri] PagedQuery pagedQuery) { var result = ProcessCategoryService.Get(pagedQuery); return(Ok(result)); }