Example #1
0
        public async Task <IActionResult> GetAll()
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }

            var certificates = await _certificateRepository.GetAll();

            var certificateResources = _mapper.Map <List <CertificateResource> >(certificates);

            return(Ok(certificateResources));
        }
Example #2
0
 public JsonResult GetAllPendingCertificates()
 {
     return(http.RespondSuccess(certificateRepository.GetAll <PendingCertificate>()));
 }
 public IEnumerable <AllCertificatesViewModel> GetAllCertificates()
 {
     return(certificateRepository.GetAll <AllCertificatesViewModel>());
 }
 public IEnumerable <Master_Certification> GetAll(Master_Certification obj, string[] param, string spName)
 {
     return(_ICertificateRepository.GetAll(obj, param, spName));
 }