Exemple #1
0
        public ActionResult EditUser(EditUser editUser)
        {
            var user = new User(editUser);

            Context.Users.Save(user);
            return(RedirectToAction("Index"));
        }
Exemple #2
0
        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");
        }
Exemple #3
0
 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();
 }