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")); }
public ActionResult DeleteSubDomain(SubDomain subDomain) { subDomainService.DeleteSubDomain(subDomain); return(RedirectToAction("GetAllSubDomains")); }