コード例 #1
0
        public ActionResult Post(PostUser postUser)
        {
            var user = new User(postUser);

            Context.Users.Insert(user);
            return(RedirectToAction("Index"));
        }
コード例 #2
0
 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();
 }