Exemplo n.º 1
0
 public ActionResult PostEditAdmin(AdminLoginModel model)
 {
     if (!ModelState.IsValid)
     {
         return(View("EditAdmin"));
     }
     using (ProjectEntities1 db = new ProjectEntities1())
     {
         db.UpdateAdmin(model.FirstName, model.LastName, model.Gender, model.Address
                        , model.Email);
         ViewBag.Message = "Updated";
         return(View("EditAdmin"));
     }
 }