Example #1
0
        public OutputViewModel PreparePageTypeModel(PageTypeEnum pageType, string priority, string description,
                                                    List <PageLinkModel> links,
                                                    string title)
        {
            if (priority == null)
            {
                throw new ArgumentNullException("priority");
            }
            if (description == null)
            {
                throw new ArgumentNullException("description");
            }
            if (links == null)
            {
                throw new ArgumentNullException("links");
            }

            if (title == null)
            {
                title = pageType.ToString().CamelCaseToWords();
            }

            var model = OutputViewModel.CreatePageTypeOutputViewModel(pageType, priority, description, links, title);

            return(model);
        }