public ActionResult EditApplySoftList(Tb_ApplySoftList tb_applysoftlist)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tb_applysoftlist).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("ApplyedSoftList", new { id = tb_applysoftlist.ApplyID });
     }
     return View(tb_applysoftlist);
 }
 public ActionResult SoftUse(FormCollection form)
 {
     string strIDs = form["hideSoftsIDs"].ToString();
     //Session["strIDs"] = strIDs;
     foreach (string item in strIDs.Split(','))
     {
         Tb_ApplySoftList applySoftListModel = new Tb_ApplySoftList();
         applySoftListModel.SoftCourseName = form["CourseName&" + item];
         applySoftListModel.TrainNumPerYear = int.Parse(form["StuNum&" + item].ToString());
         applySoftListModel.ApplyNum = int.Parse(form["ApplyNum&" + item].ToString());
         applySoftListModel.SoftID = int.Parse(item);
         applySoftListModel.ApplyID = int.Parse(Session["ApplyID"].ToString());
         mHelp.Add<Tb_ApplySoftList>(applySoftListModel);
     }
     return View("AddSoftCourse");
 }
        public ActionResult CreateSelectSoft(Tb_ApplySoftList tb_applysoftlist)
        {
            //tb_applysoftlist.ApplyID=Request.Form["ApplyID"]
            if (ModelState.IsValid)
            {
                db.Tb_ApplySoftList.Add(tb_applysoftlist);
                db.SaveChanges();
                return RedirectToAction("ApplyedSoftList", new {id= tb_applysoftlist.ApplyID });
            }

            return View(tb_applysoftlist);
        }