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

            return(View(helper.GetPublisher(publisherID)));
        }
Esempio 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);
        }
Esempio n. 3
0
        public ActionResult Details(int publisherID)
        {
            PublisherHelper helper = new PublisherHelper();

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