Exemplo n.º 1
0
        //
        // GET: /users/Create

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

        public ActionResult Index()
        {
            ViewBag.HeaderText = "Awards list";
            return(View(awards.GetList()));
        }
Exemplo n.º 6
0
        //
        // GET: /Award/

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