public List <PhoneDTO> GetPhones() { var returnList = new List <PhoneDTO>(); foreach (var item in pssc.GetPhones()) { returnList.Add(PhoneMapper.MapToDTO(item)); } return(returnList); }
public PhoneDTO GetPhone(int id) { return(PhoneMapper.MapToDTO(pssc.GetPhone(id))); }