public IActionResult BuyItem(Transactionhistory item) { try { _ibuyrepo.BuyItem(item); return(Ok()); } catch (Exception e) { return(NotFound(e.Message)); } }
public IActionResult BuyItem(PurchaseHistory item) { try { _repo.BuyItem(item); return(Ok()); } catch (Exception e) { return(NotFound(e.InnerException.Message)); } }
public IActionResult buyitem(PurchaseHistory item) { try { ir.BuyItem(item); return(Ok()); } catch (Exception e) { return(NotFound(e.Message)); } }