public List <PhoneDAO> GetPhones()
        {
            var returnList = new List <PhoneDAO>();

            foreach (var item in data.GetPhones())
            {
                returnList.Add(PhoneMapper.MapToPhoneDAO(item));
            }

            return(returnList);
        }
 public bool ChangePhone(PhoneDAO phone)
 {
     return(data.ChangePhone(PhoneMapper.MapToPhone(phone)));
 }
 public bool InsertPhone(PhoneDAO phone)
 {
     return(data.InsertPhone(PhoneMapper.MapToPhone(phone)));
 }
 public PhoneDAO GetPhone(int id)
 {
     return(PhoneMapper.MapToPhoneDAO(data.GetPhone(id)));
 }
 public bool DeletePhone(PhoneDAO phone)
 {
     return(data.DeletePhone(PhoneMapper.MapToPhone(phone)));
 }
 public bool InsertPhone(PhoneDTO item)
 {
     return(pssc.InsertPhone(PhoneMapper.MapToDAO(item)));
 }
 public bool DeletePhone(PhoneDTO item)
 {
     return(pssc.DeletePhone(PhoneMapper.MapToDAO(item)));
 }
 public bool ChangePhone(PhoneDTO item)
 {
     return(pssc.ChangePhone(PhoneMapper.MapToDAO(item)));
 }
 public PhoneDTO GetPhone(int id)
 {
     return(PhoneMapper.MapToDTO(pssc.GetPhone(id)));
 }