示例#1
0
 public CartItemModel UpdateCartItem(CartItemModel model)
 {
     model.OrderId = model.OrderId == 0 ? null : model.OrderId;
     return(_repo.Update(model));
 }
示例#2
0
 public IActionResult UpdateCartItem(int productId, [FromBody] CartItemModel model)
 {
     return(Put(_service.UpdateCartItem, AuditExisting(model)));
 }
示例#3
0
 public CartItemModel AddCartItem(CartItemModel model)
 {
     model.OrderId = model.OrderId == 0 ? null : model.OrderId;
     return(_repo.Insert(model));
 }
示例#4
0
 public IActionResult AddCartItem([FromBody] CartItemModel model)
 {
     return(Post(_service.AddCartItem, AuditNew(model)));
 }