public ActionResult DeleteSubDomain(SubDomain subDomain)
        {
            Log.Debug($"Deleting {subDomain.Name}");

            try
            {
                subDomainService.DeleteSubDomain(subDomain);
                Log.Info($"{subDomain.Name} was deleted succesfully");
            }
            catch (Exception e)
            {
                Log.Error(e.ToString());
            }

            return(RedirectToAction("SubDomains"));
        }
示例#2
0
 public ActionResult DeleteSubDomain(SubDomain subDomain)
 {
     subDomainService.DeleteSubDomain(subDomain);
     return(RedirectToAction("GetAllSubDomains"));
 }