Пример #1
0
        public ActionResult CreateQa(Qa qa, int advertiseId, int subDomainId)
        {
            qa.AdvertiseId = advertiseId;
            qa.SubDomainId = subDomainId;
            qaService.InsertQa(qa);

            return(RedirectToAction("GetAllQas"));
        }
Пример #2
0
        public ActionResult CreateQa(Qa qa, int domainId, int subDomainId)
        {
            qa.DomainId    = domainId;
            qa.SubDomainId = subDomainId;

            Log.Debug("Creating new Q&A");
            try
            {
                qaService.InsertQa(qa);
            }
            catch (Exception e)
            {
                Log.Error(e.ToString());
            }

            return(RedirectToAction("Qas"));
        }