public ActionResult Edit(int id_wniosek) { wniosekWithDecyzja wwd; using (DbServiceClient client = new DbServiceClient()) { wwd = client.GetWniosek(id_wniosek); } ViewBag.Date1 = data1; ViewBag.Date2 = data2; return(View(wwd)); }