public ActionResult PostLogin(AdminLoginModel model) { using (ProjectEntities1 db = new ProjectEntities1()) { var getdata = db.Admins.SingleOrDefault(a => a.Email == model.Email); db.InsertAdmin(model.FirstName, model.LastName, model.Gender, model.Address , model.Email, model.Password); ViewBag.Message = "Inserted"; } return(View("Login")); }