コード例 #1
0
        public static bool UpdatePublisher(string newPublisher)
        {
            bool result = true;

            if (CountPublisher(newPublisher) == 0)
            {
                result = 1 == PublisherAccessor.CreatePublisher(newPublisher, true);
            }

            return(result);
        }
コード例 #2
0
        public static bool CreatePublisher(string publisher, bool admin = false)
        {
            bool result = false;

            try
            {
                result = 1 == PublisherAccessor.CreatePublisher(publisher, admin);
            }
            catch (Exception)
            {
                throw;
            }

            return(result);
        }