public EntityModuleService GetAllBYModule(int module) { var data = base.DataContext.ModuleMabe.Where(p => p.PK_ModuleID == module); if (data.Count() == 1) { return(FactoryModuleService.Get(data.Single())); } else { return(null); } }
public List <EntityModuleService> GetAllBYModuleList(int module) { return(FactoryModuleService.GetList(base.DataContext.ModuleMabe.Where(p => p.PK_ModuleID == module).ToList())); }
public List <EntityModuleService> GetAll() { return(FactoryModuleService.GetList(base.DataContext.ModuleMabe.ToList())); }
public List <EntityModuleService> GetActives() { return(FactoryModuleService.GetList(base.DataContext.ModuleMabe.Where(p => p.Status == true).ToList())); }