Exemplo n.º 1
0
        /// <summary>
        /// Rerunrs stroies page
        /// </summary>
        /// <param name="projectId">Project Id</param>
        /// <returns>stories view</returns>
        public IActionResult Stories(int projectId)
        {
            ViewBag.ProjectId = projectId;
            var currentUserEmail = User.Identity.Name;

            var hasPermission = Permission.IsUserHasAccessToProject(currentUserEmail, projectId);



            if (!hasPermission)
            {
                return(Content("You dont have permission to access this project. Request owner of project for access permission."));
            }

            StoryModel story = new StoryModel(this.iStoryBaseModel);
            var        list  = story.GetProjectDetails(projectId);

            ViewBag.ProjectName        = list.ProjectName;
            ViewBag.ProjectDescription = list.Description;
            ViewData["Message"]        = "Stories";

            return(View());
        }