Пример #1
0
        public virtual ActionResult CreateProTeam(CreateProTeamViewModel createProTeamViewModel)
        {
            if (!ModelState.IsValid)
                return View(createProTeamViewModel);

            _teamsService.CreateProTeam(createProTeamViewModel.Title, createProTeamViewModel.Description, createProTeamViewModel.Url, createProTeamViewModel.UsersIds.Where(ui => ui.HasValue).Select(ui => ui.Value).ToList());

            return RedirectToAction(MVC.Admin.AdminTeams.GetProTeams());
        }
Пример #2
0
        public virtual ActionResult CreateProTeam()
        {
            var createProTeamViewModel = new CreateProTeamViewModel();

            return View(createProTeamViewModel);
        }