示例#1
0
 public Shoe Update(Shoe shoeUpdate)
 {
     try
     {
         ValidateData(shoeUpdate);
     }
     catch (Exception e)
     {
         throw;
     }
     return(_shoeRepo.Update(shoeUpdate));
 }
 public ActionResult <bool> Post(int id, [FromBody] Shoe shoe)
 {
     shoeRepo.Update(shoe);
     return(true);
 }