Пример #1
0
        public MiscellaneousInfoViewModel GetMiscellaneousInfo()
        {
            MiscellaneousInfoViewModel vm = new MiscellaneousInfoViewModel();

            vm.Certificates = _certificateService.GetCertificates();

            vm.Languages = _langaugeService.GetLanguages();

            return(vm);
        }
Пример #2
0
        public async Task <CertificateModel> CertificatePreviewApi(bool isPreview,
                                                                   [FromQuery] long[] ids)
        {
            var certificates = await _certificateService.GetCertificates(new CertificateOptions
            {
                IDs = ids
            });

            var data = certificates.OrderBy(e => e.SerialNo)
                       .Select(e => CertificateHelper.Convert(e))
                       .ToList();

            return(new CertificateModel
            {
                IsPreview = isPreview,
                Certificates = data
            });
        }
Пример #3
0
 public IEnumerable <CertificateDTO> Gets()
 {
     return(certService.GetCertificates());
 }