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