public ActionResult Post(PostUser postUser) { var user = new User(postUser); Context.Users.Insert(user); return(RedirectToAction("Index")); }
public User(PostUser 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(); }