Esempio n. 1
0
        public async Task <IHttpActionResult> GetPage(string seoName)
        {
            Page page = await _pageServices.GetBySeoNameAsync(seoName);

            if (page == null)
            {
                return(NotFound());
            }
            var vm = _mapper.Map <Page, PageFVM>(page);

            return(Ok(vm));
        }