コード例 #1
0
        public ActionResult CreateSubDomain(SubDomain subDomain, int domainId)
        {
            subDomain.DomainId = domainId;
            subDomainService.InsertSubDomain(subDomain);

            return(RedirectToAction("GetAllSubDomains"));
        }
コード例 #2
0
        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"));
        }