public ActionResult Create(Guid geneticLineId, Guid standardId) { var geneticLine = _geneticLineService.GetById(geneticLineId); var standard = _standardService.GetById(standardId); ViewBag.Operation = "Create"; var model = new CreateStandardGeneticLineForm() { StandardGeneticLine = new StandardGeneticLine() { GeneticLine = geneticLine, Standard = standard } }; model.GenerateItems(); return View(model); }
public ActionResult Edit(Guid id) { var item = _service.GetById(id); ViewBag.Operation = "Edit"; var model = new CreateStandardGeneticLineForm() { StandardGeneticLine = item, }; model.GenerateItems(); return View("Create", model); }
public ActionResult Detail(Guid id) { var item = _service.GetById(id); var model = new CreateStandardGeneticLineForm() { StandardGeneticLine = item }; model.GenerateItems(); return View(model); }