public List <VoluntaryDTO> GetAll() { List <VoluntaryDTO> voluntarysDto = new List <VoluntaryDTO>(); var voluntarys = voluntaryRepository.FindAll(); foreach (Voluntary cli in voluntarys) { voluntarysDto.Add(VoluntaryAdapter.ToDTO(cli)); } return(voluntarysDto); }
public VoluntaryDTO Get(Guid id) { var voluntary = voluntaryRepository.Find(id); return(VoluntaryAdapter.ToDTO(voluntary)); }