public IActionResult GetCartItems()
 {
     try
     {
         return(Ok(_ibuyrepo.GetCartItems()));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }
 public IActionResult GetCartItems()
 {
     try
     {
         return(Ok(_repo.GetCartItems()));
     }
     catch (Exception e)
     {
         return(NotFound(e.InnerException.Message));
     }
 }
Exemple #3
0
 public IActionResult GetCartItems(string buyerid)
 {
     try
     {
         return(Ok(_repo.GetCartItems(buyerid)));
     }
     catch (Exception ex)
     {
         return(NotFound(ex.Message));
     }
 }