// GET: ExportToPdf/Details/{Guid}
        public ActionResult Details(Guid id)
        {
            if (id == Guid.Empty)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            CertificationTypeGridRow certificationTypeGridRow = certificationTypeServices.GetCertificationType(id);

            if (certificationTypeGridRow == null)
            {
                return(HttpNotFound());
            }

            return(View(certificationTypeGridRow));
        }
        public CertificationTypeGridRow GetCertificationType(Guid Id)
        {
            var result = new CertificationTypeGridRow();

            try
            {
                var query = from certificationTypes in dbContext.CertificationTypes
                            where certificationTypes.Id == Id
                            select new CertificationTypeGridRow
                {
                    Id   = certificationTypes.Id,
                    Name = certificationTypes.Name
                };

                result = query.FirstOrDefault() ?? new CertificationTypeGridRow();
            }
            catch (Exception e)
            {
                Debug.WriteLine($"Exception: {e.Message}");
            }
            return(result);
        }