Пример #1
0
        public static VagueCreationReponse ConvertVagueToResponse(this Vague vague)
        {
            var response = new VagueCreationReponse {
                Vague = vague
            };

            return(response);
        }
Пример #2
0
        public VagueCreationReponse CreateVague(VagueCreationRequest vagueCreationRequest)
        {
            var vagueCreationReponse = new VagueCreationReponse();
            var listSignalitique     = DonneesFactory.CreateDonnees(vagueCreationRequest.FilePath, vagueCreationRequest.VagueName, _individusRepository);

            if (listSignalitique.Count > 0)
            {
                vagueCreationReponse.Success      = true;
                vagueCreationReponse.NbPopulation = listSignalitique.Count;
                vagueCreationReponse.VagueName    = vagueCreationRequest.VagueName;
            }
            else
            {
                vagueCreationReponse.Success = false;
            }
            return(vagueCreationReponse);
        }