Пример #1
0
        //
        // GET: /users/Create

        public ActionResult Create()
        {
            return(View(UserViewModel.GetViewModel((new User()
            {
                firstName = "", lastName = "", birthdate = DateTime.Parse("01.01.01")
            }), awards.GetList())));
        }
Пример #2
0
        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;
        }
Пример #3
0
 private void DisplayAwards()
 {
     // Data binding
     ctlAwards.DataSource = null;
     ctlAwards.DataSource = awards.GetList();
 }
Пример #4
0
 public UserForm(AwardBL awards)
 {
     InitializeComponent();
     this.awards = awards.GetList();
 }
Пример #5
0
        //
        // GET: /Award/

        public ActionResult Index()
        {
            ViewBag.HeaderText = "Awards list";
            return(View(awards.GetList()));
        }
Пример #6
0
        //
        // GET: /Award/

        public ActionResult Index()
        {
            ViewBag.HeaderText = "Список наград";
            return(View(awards.GetList()));
        }