public JsonResult OrderUpdate(List <OrderUpdateViewModel> cartTable) { List <OrderUpdateViewModel> i = new List <OrderUpdateViewModel>(); i = cartTable; decimal totalPrice = 0; var oi = Regex.Replace(cartTable[0].OrderGuid, @"\n", "").Trim(); foreach (var item in cartTable) { totalPrice += item.Count * item.Price; } _orderProvider.UpdateOrderDetail(cartTable, totalPrice, oi); return(Json("123", JsonRequestBehavior.AllowGet)); }