Example #1
0
 public async Task <int> UpdateQuantity(int partId, int newQuantity, string colorId = "")
 {
     try
     {
         return(await _partService.UpdateQuantity(partId, newQuantity, colorId));
     }
     catch (Exception)
     {
         Response.StatusCode = 500;
         return(0);
     }
 }