示例#1
0
        public ActionResult CreateCompanyLinkType(CompanyLinkType type)
        {
            if (ModelState.IsValid)
            {
                db.CompanyLinkType.Add(type);
                db.SaveChanges();
                return RedirectToAction("CompanyLinkType");
            }

            return View(type);
        }
示例#2
0
 public ActionResult EditCompanyLinkType(CompanyLinkType type)
 {
     if (ModelState.IsValid)
     {
         db.Entry(type).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("CompanyLinkType");
     }
     return View(type);
 }