예제 #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
파일: UserForm.cs 프로젝트: h3yTr0uble/epam
        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
파일: MainForm.cs 프로젝트: h3yTr0uble/epam
 private void DisplayAwards()
 {
     // Data binding
     ctlAwards.DataSource = null;
     ctlAwards.DataSource = awards.GetList();
 }
예제 #4
0
파일: UserForm.cs 프로젝트: h3yTr0uble/epam
 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()));
        }