public IHttpActionResult DeleteBookFromCart([FromBody] CartModel model) { if (!ModelState.IsValid) { return(BadRequest()); } Guid cartID = model.CartID; Guid bookID = model.BookId; var list = _Book.DeleteBookFromCart(cartID, bookID); if (list) { return(Ok()); } return(BadRequest()); }