public ActionResult AcceptWaiver(String Id, String error) { if (!String.IsNullOrEmpty(error)) { ViewBag.error = error; } int id = Convert.ToInt32(Id); UserBaseViewModel user = m.GetUserById(id); UserAcceptWaiverViewModel acceptWaiverUser = m.mapper.Map <UserBaseViewModel, UserAcceptWaiverViewModel>(user); return(View(acceptWaiverUser)); }
public ActionResult AcceptWaiver(UserAcceptWaiverViewModel user) { bool error = m.AcceptWaiverByUser(user); if (!error) { return(View(user.user_ID.ToString())); } else { return(RedirectToAction("Index")); } }