public List <EmailDTO> GetEmails() { var returnList = new List <EmailDTO>(); foreach (var item in pssc.GetEmails()) { returnList.Add(EmailMapper.MapToDTO(item)); } return(returnList); }
public EmailDTO GetEmail(int id) { return(EmailMapper.MapToDTO(pssc.GetEmail(id))); }