Exemple #1
0
        public List <ResourceGridDto> GetList()
        {
            var specification = new Specification <Resource>(u => u.DeletedMark == false);
            var list          = resourceRepository.FindAll(specification).ToList();

            return(Mapper.Map <List <ResourceGridDto> >(list));
        }
        public List <ResourceGridDto> GetList()
        {
            var specification = new Specification <Resource>(u => u.DeletedMark == false);
            var sortingOtopns = new SortingOptions <Resource, int?>(x => x.SortCode, isDescending: false);
            var list          = resourceRepository.FindAll(specification, sortingOtopns).ToList();

            return(Mapper.Map <List <ResourceGridDto> >(list));
        }