public Task <List <MasterValue> > GetListAll(EnMasterValueType type) { var taskResult = Task.Run(() => { using (var context = new DbContext()) { return(context .MasterValues .Where(g => g.Type == (byte)type) .ToList()); } }); return(taskResult); }
public Task <List <MasterValue> > DropDown(EnMasterValueType type) { return(_masterValueRepository.DropDown(type)); }
public Task <List <MasterValue> > GetListAll(EnMasterValueType type) { return(_masterValueRepository.GetListAll(type)); }