public ActionResult CreateAdvertise(Advertise advertise, int domainId, int userId, int subDomainId)
        {
            advertise.CreateDate  = DateTime.Now;
            advertise.DomainId    = domainId;
            advertise.UserId      = userId;
            advertise.SubDomainId = subDomainId;

            advertiseService.InsertAdvertise(advertise);

            return(RedirectToAction("GetAllAdvertises"));
        }
        public ActionResult CreateAdvertise(Advertise advertise, int domainId, int userId, int subDomainId)
        {
            advertise.CreateDate  = DateTime.Now;
            advertise.DomainId    = domainId;
            advertise.UserId      = userId;
            advertise.SubDomainId = subDomainId;

            Log.Debug("Creating new Domain");

            try
            {
                advertiseService.InsertAdvertise(advertise);
            }
            catch (Exception e)
            {
                Log.Error(e.ToString());
            }

            return(RedirectToAction("Advertises"));
        }