public ActionResult Update_Post(int id, User_Update userdata) { ViewBag.State = new SelectList(userManager.StateView(), "StateName", "StateName"); ViewBag.City = new SelectList(userManager.CityView(), "CityName", "CityName"); if (ModelState.IsValid) { User registration = Mapper.Map <User_Update, User>(userdata); registration.UpdatedDate = DateTime.Now; if (userManager.ToUpdate(registration) == true) { return(RedirectToAction("CustomerData")); } } return(View()); }
public void UpdateUser(User_Update input) { var db = new StoredProcContext(); db.UserUpdate.CallStoredProc(input); }