示例#1
0
 public IActionResult EditGender(Models.TbGender model)
 {
     db.TbGender.Update(model);
     db.SaveChanges();
     return(RedirectToAction("GenderList"));
 }
示例#2
0
 public IActionResult CreateGender(Models.TbGender model)
 {
     db.TbGender.Add(model);
     db.SaveChanges();
     return(RedirectToAction("GenderList"));
 }