public ActionResult Edit(int id) { uspWFMGetSingleAggregationResult result; using (WFMDBDataContext db = new WFMDBDataContext()) { result = db.uspWFMGetSingleAggregation(id).FirstOrDefault(); } GetSkillGroupListForDDL(id); if (result != null) { SkillAgregationModel model = new SkillAgregationModel() { iAggregationID = result.iAggregationID, vAggregationName = result.vAggregationName }; return View(model); } else { return RedirectToAction("Message", "Error", new { Error = "スキルアグリゲーション在しません。" }); } }
public ActionResult Edit(int id) { uspWFMGetSingleAggregationResult result; using (WFMDBDataContext db = new WFMDBDataContext()) { result = db.uspWFMGetSingleAggregation(id).FirstOrDefault(); } GetSkillGroupListForDDL(id); if (result != null) { SkillAgregationModel model = new SkillAgregationModel() { iAggregationID = result.iAggregationID, vAggregationName = result.vAggregationName }; return(View(model)); } else { return(RedirectToAction("Message", "Error", new { Error = "スキルアグリゲーション在しません。" })); } }