// // GET: /users/Create public ActionResult Create() { return(View(UserViewModel.GetViewModel((new User() { firstName = "", lastName = "", birthdate = DateTime.Parse("01.01.01") }), awards.GetList()))); }
public UserForm(User user, AwardBL awards) { InitializeComponent(); this.firstName = user.FirstName; this.lastName = user.LastName; this.birthdate = user.Birthdate; this.userAwards = user.Awards; this.awards = awards.GetList(); createNew = false; }
private void DisplayAwards() { // Data binding ctlAwards.DataSource = null; ctlAwards.DataSource = awards.GetList(); }
public UserForm(AwardBL awards) { InitializeComponent(); this.awards = awards.GetList(); }
// // GET: /Award/ public ActionResult Index() { ViewBag.HeaderText = "Awards list"; return(View(awards.GetList())); }
// // GET: /Award/ public ActionResult Index() { ViewBag.HeaderText = "Список наград"; return(View(awards.GetList())); }