Example #1
0
 public IActionResult EditPro(Models.TbProvince model)
 {
     db.TbProvince.Update(model);
     db.SaveChanges();
     return(RedirectToAction("ProList"));
 }
Example #2
0
 public IActionResult CreatePro(Models.TbProvince model)
 {
     db.TbProvince.Add(model);
     db.SaveChanges();
     return(RedirectToAction("ProList"));
 }