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