Exemplo n.º 1
0
 public List <Department> GetList()
 {
     return(_mapper.Map <List <Department> >(_departmentDal.GetList()));
 }
Exemplo n.º 2
0
 public List <Department> List()
 {
     return(_departmentDal.GetList());
 }
Exemplo n.º 3
0
 public List <Department> GetAllDepartments(Expression <Func <Department, bool> > filter = null,
                                            Func <IQueryable <Department>, IOrderedQueryable <Department> > orderby = null, int skip = 10, int take = 10)
 {
     return(_departmentDal.GetList(filter ?? (k => true), orderby ?? (m => m.OrderByDescending(k => k.Id)), skip, take));
 }
 public List <Department> GetList(Expression <Func <Department, bool> > filter = null)
 {
     return(AutoMapperHelper.MapToSameTypeList(_departmentDal.GetList(filter)));
 }
Exemplo n.º 5
0
        public IActionResult Index()
        {
            var departmentList = _departmentDal.GetList();

            return(View(departmentList));
        }
 public IDataResult <List <Department> > GetList()
 {
     return(new SuccessDataResult <List <Department> >(departmentDal.GetList(d => d.IsEnable == true).ToList()));
 }
Exemplo n.º 7
0
 public IDataResult <List <Department> > GetList()
 {
     return(new SuccessDataResult <List <Department> >(_departmentDal.GetList()));
 }
Exemplo n.º 8
0
 public List <Department> GetList(Expression <Func <Department, bool> > filter = null)
 {
     return(_departmentDal.GetList(filter));
 }
Exemplo n.º 9
0
 public IActionResult Create()
 {
     ViewData["DepartmentId"] = new SelectList(_departmentDal.GetList(), "Id", "Name");
     return(View());
 }