Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public Task <List <MasterValue> > DropDown(EnMasterValueType type)
 {
     return(_masterValueRepository.DropDown(type));
 }
Ejemplo n.º 3
0
 public Task <List <MasterValue> > GetListAll(EnMasterValueType type)
 {
     return(_masterValueRepository.GetListAll(type));
 }