Ejemplo n.º 1
0
        /************************************ Services Detail page *******************************************************/
        public async Task <ActionResult> ServiceDetails(string id)
        {
            var Service = await siteService.ServiceGetByID(id);

            if (Service == null)
            {
                return(HttpNotFound());
            }
            ViewBag.SelectedService = Service;

            var Stories = await siteService.GetAllStoriesForService(id);

            if (Stories == null)
            {
                return(HttpNotFound());
            }
            return(View(Stories));
        }