Exemplo n.º 1
0
        public IActionResult OnPost(int certificationId)
        {
            var certification = certificationData.Delete(certificationId);

            certificationData.Commit();
            if (certification == null)
            {
                return(RedirectToPage("./NotFound"));
            }
            //TempData["Message"] = $"{certification.Group} deleted";
            TempData["Message"] = $"certification deleted";
            return(RedirectToPage("./List"));
        }
Exemplo n.º 2
0
 public void DeleteCertificationNoAuth(CertificationsModel cert)
 {
     certData.Delete(cert.Id);
     certData.Commit();
 }