Example #1
0
        public async Task <List <Formation> > GetAllFormations(int teamId)
        {
            List <FormationDto> formationDtos = await _formationRepository.GetAllFormations(teamId);

            List <Formation> formations = new List <Formation>();

            foreach (FormationDto dto in formationDtos)
            {
                formations.Add(dto.ToEntity());
            }
            return(formations);
        }
Example #2
0
        public IActionResult ToutesLesFormations()
        {
            var listFormations = _repository.GetAllFormations();

            return(View(listFormations));
        }