Example #1
0
 public IHttpActionResult AddtoCart([FromBody] IdViewModel idViewModel)
 {
     try
     {
         return(Ok(CartManager.AddItemtoCart(idViewModel)));
     }
     catch (Exception exception)
     {
         return(InternalServerError(exception));
     }
 }