예제 #1
0
 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>()));
     }
 }
예제 #2
0
 public IHttpActionResult Delete(int id)
 {
     AttributeCategoryService.Delete(id);
     return(Ok());
 }
예제 #3
0
 public IHttpActionResult Put([FromBody] Contracts.AttributeCategory.UpdateAttributeCategory update)
 {
     AttributeCategoryService.Update(update);
     return(Ok());
 }
예제 #4
0
 public IHttpActionResult Post([FromBody] Contracts.AttributeCategory.CreateAttributeCategory create)
 {
     AttributeCategoryService.Create(create);
     return(Ok());
 }
예제 #5
0
        public IHttpActionResult Get(int id)
        {
            var result = AttributeCategoryService.GetSingle(id);

            return(Ok(result));
        }
예제 #6
0
        public IHttpActionResult Get([FromUri] PagedQuery pagedQuery, [FromUri] string attributeTypeId)
        {
            var result = AttributeCategoryService.Get(pagedQuery, attributeTypeId);

            return(Ok(result));
        }