Beispiel #1
0
 public static User ConvertToUser(this UsersData data)
 {
     User result = new User()
     {
         UserID = data.UserID,
         Name = data.Name,
         Address = data.Address,
         Phone = data.Phone,
         Surname = data.Surname
     };
     return result;
 }
Beispiel #2
0
 public ActionResult PostStep1(string name, string surname)
 {
     DomainModel.Models.User user = new DomainModel.Models.User()
     {
         Name = name,
         Surname = surname
     };
     TempData["Model"] = user;
     return RedirectToAction("Step2");
 }