public ActionResult EditUser(EditUser editUser) { var user = new User(editUser); Context.Users.Save(user); return(RedirectToAction("Index")); }
public ActionResult EditUser(string id, EditUser editUser) { var user = GetUser(id); //user.AdjustPrice(adjustPrice); //Context.Users.Save(user); //Context.Users.Save(user); return(View(user)); //return RedirectToAction("Index"); }
public User(EditUser postUser) { Description = postUser.Description; FirstName = postUser.FirstName; LastName = postUser.LastName; Email = postUser.Email; //registerationDate = postUser.registerationDate; Telefon = postUser.Telefon; Password = postUser.Password; Address = (postUser.Address ?? string.Empty).Split('\n').ToList(); }