예제 #1
0
        public List <BodyTypeViewModel> GetAllBodyTypes()
        {
            var bodyTypes = _bodyTypeRepository.Get();

            return(bodyTypes.Select(_ => new BodyTypeViewModel {
                BodyTypeNumber = _hashidsService.Encode(_.Id),
                BodyTypeName = _.Name
            }).ToList());
        }
예제 #2
0
        public List <SchoolClassViewModel> _getAllSchoolClass()
        {
            var SchoolClassList = _schoolClassRepository.GetSchoolClassList();

            return(SchoolClassList.Select(p => new SchoolClassViewModel
            {
                SchoolClassName = p.Name,
                SchoolClassNumber = _hashidsService.Encode(p.Id)
            }).ToList());
        }