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