public List <PlantSpecieDTO> GetAllPlantSpecies()
 {
     using (var context = new PlantAppContext())
     {
         return(context.PlantSpecies.ToList().Select(x => PlantSpecieDTO.FromEntity(x)).ToList());
     }
 }
 public PlantSpecieDTO GetPlantSpecieById(int id)
 {
     using (var context = new PlantAppContext())
     {
         return(context.PlantSpecies.Where(x => x.Id == id).ToList().Select(x => PlantSpecieDTO.FromEntity(x)).FirstOrDefault());
     }
 }