コード例 #1
0
 public ActionResult Edit(int id, SkillAgregationModel skillAgregation)
 {
     if (ModelState.IsValid)
     {
         if (id != skillAgregation.iAggregationID)
         {
             return RedirectToAction("Message", "Error", new { Error = "スキルアグリゲーション在しません。" });
         }
     }
     string skillGroupIDs = Request.Form["selectSkillGroup"];
     WFMDBDataContext db = new WFMDBDataContext();
     db.uspWFMUpdateAggregation(id, skillAgregation.vAggregationName, skillGroupIDs);
     return RedirectToAction("Index");
 }
コード例 #2
0
        public ActionResult Edit(int id, SkillAgregationModel skillAgregation)
        {
            if (ModelState.IsValid)
            {
                if (id != skillAgregation.iAggregationID)
                {
                    return(RedirectToAction("Message", "Error", new { Error = "スキルアグリゲーション在しません。" }));
                }
            }
            string           skillGroupIDs = Request.Form["selectSkillGroup"];
            WFMDBDataContext db            = new WFMDBDataContext();

            db.uspWFMUpdateAggregation(id, skillAgregation.vAggregationName, skillGroupIDs);
            return(RedirectToAction("Index"));
        }