Пример #1
0
 public ActionResult <Brand> Edit([FromBody] Brand newBrand, int id)
 {
     try
     {
         newBrand.Id = id;
         return(Ok(_ss.Edit(newBrand)));
     }
     catch (Exception e)
     {
         return(BadRequest(e.Message));
     }
 }