public ActionResult CreateSubDomain(SubDomain subDomain, int domainId) { subDomain.DomainId = domainId; subDomainService.InsertSubDomain(subDomain); return(RedirectToAction("GetAllSubDomains")); }
public ActionResult CreateSubDomain(SubDomain subDomain, int domainId) { subDomain.DomainId = domainId; Log.Debug("Creating new SubDomain"); try { subDomainService.InsertSubDomain(subDomain); } catch (Exception e) { Log.Error(e.ToString()); } return(RedirectToAction("SubDomains")); }