public IActionResult Buyitem(PurchaseHistory obj)
 {
     try
     {
         _repo.Buyitem(obj);
         return(Ok());
     }
     catch (Exception e)
     {
         return(NotFound(e.InnerException.Message));
     }
 }
예제 #2
0
 public IActionResult Buyitem(PurchaseHistory obj)
 {
     try
     {
         _repo.Buyitem(obj);
         return(Ok());
     }
     catch (Exception ex)
     {
         return(Content(ex.InnerException.Message));
     }
 }