Exemplo n.º 1
0
        public void AddTeam(VMAdminTeamAddTeam vmAddTeam)
        {
            var coreNewTeam = new CoreNewTeam()
            {
                TeamName = vmAddTeam.TeamName
            };

            _teamAccess.AddTeam(coreNewTeam);
        }
Exemplo n.º 2
0
        public void AddTeam(CoreNewTeam coreTeam)
        {
            var dbTeam = new DbTeam
            {
                TeamName = coreTeam.TeamName
            };

            _context.DbTeams.Add(dbTeam);
            _context.SaveChanges();
        }
Exemplo n.º 3
0
        public void AddNewTeam(VMAdminTeamAddNewTeam team)
        {
            if (string.IsNullOrWhiteSpace(team.TeamName))
            {
                return;
            }
            var coreModel = new CoreNewTeam
            {
                TeamName = team.TeamName
            };

            _adminTeamAccess.AddTeam(coreModel);
        }