public IHttpActionResult EditCategoria(Category category) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var ret = db.PR_EditCategory(category.Name, category.IdCategory); return(Ok(ret)); }
public IHttpActionResult EditCategoria(Category category) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } var ret = db.PR_EditCategory(category.Name, category.IdCategory); return(Ok(ret)); }