Ejemplo n.º 1
0
 public async Task <HttpStatusCode> PostCat([FromBody] CategoryModel mod)
 {
     if (await services.CreateCategory(mod))
     {
         return(HttpStatusCode.OK);
     }
     return(HttpStatusCode.BadRequest);
 }