Exemplo n.º 1
0
        public ActionResult Edit(int publisherID)
        {
            InitLists();
            PublisherHelper helper = new PublisherHelper();

            return(View(helper.GetPublisher(publisherID)));
        }
Exemplo n.º 2
0
        protected Publisher GetPublisher(int?publisherId)
        {
            Publisher       result = new Publisher();
            PublisherHelper helper = new PublisherHelper();

            if (!publisherId.HasValue)
            {
                UserSettingsHelper usHelper     = new UserSettingsHelper();
                string             userLanguage = usHelper.GetUserLanguage(User.Identity.GetUserId());
                result = helper.GetFirstPublisherByCountryAndStatus(userLanguage, PublisherStatus.None);
            }
            else
            {
                result = helper.GetPublisher(publisherId.Value);
            }
            return(result);
        }
Exemplo n.º 3
0
        public ActionResult Details(int publisherID)
        {
            PublisherHelper helper = new PublisherHelper();

            return(View(helper.GetPublisher(publisherID)));
        }