public EntityDevicePhone GetByIMEI(string IMEI) { var data = base.DataContext.DevicePhone.Where(p => p.IMEI == IMEI); if (data.Count() == 1) { return(FactoryDevicePhone.Get(data.Single())); } else { return(null); } }
public EntityDevicePhone Get(int Id) { var data = base.DataContext.DevicePhone.Where(p => p.DevicePhoneID == Id); if (data.Count() == 1) { return(FactoryDevicePhone.Get(data.Single())); } else { return(null); } }
public List <EntityDevicePhone> GetAll() { return(FactoryDevicePhone.GetList(base.DataContext.DevicePhone.ToList())); }
public List <EntityDevicePhone> GetActives() { return(FactoryDevicePhone.GetList(base.DataContext.DevicePhone.Where(p => p.Status == true).ToList())); }