示例#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));
        }