Exemple #1
0
 public HttpResponseMessage RemoveProductFromCart(int?CartId)
 {
     try
     {
         var result = _CartServices.RemoveProductFromCart(CartId);
         if (result != null)
         {
             return(Request.CreateResponse(HttpStatusCode.OK, result));
         }
         return(Request.CreateErrorResponse(HttpStatusCode.NotFound, "Something wrong! Please try again later."));
     }
     catch (Exception)
     {
         throw;
     }
 }