public ActionResult Add(int id, int count = 1) { var dataProvider = new DataProvider(); var b = dataProvider.GetBouquetByConcreteId(id); b.Count = count; _order.Bouquetes.Add(b); Response.Redirect("~/Kosik"); return View("Index"); }
public ActionResult ChangeSize(Guid id, int count) { var dataProvider = new DataProvider(); var b = dataProvider.GetBouquetByConcreteId(count); b.Count = _order.Bouquetes.First(_=>_.OrderItemId == id).Count; _order.Bouquetes.Remove(_order.Bouquetes.First(_ => _.OrderItemId == id)); _order.Bouquetes.Add(b); Response.Redirect("~/Kosik"); return View("Index"); }