コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public ActionResult Detail(Guid id)
 {
     var item = _service.GetById(id);
     var model = new CreateStandardGeneticLineForm()
     {
         StandardGeneticLine = item
     };
     model.GenerateItems();
     return View(model);
 }