Beispiel #1
0
        public async Task <ActionResult> Edit(int projectId, int plotFolderId)
        {
            var folder = await _plotRepository.GetPlotFolderAsync(projectId, plotFolderId);

            if (folder == null)
            {
                return(NotFound());
            }
            return(View(new EditPlotFolderViewModel(folder, CurrentUserIdOrDefault, UriService)));
        }
Beispiel #2
0
        public async Task <ActionResult> Edit(int projectId, int plotFolderId)
        {
            var folder = await _plotRepository.GetPlotFolderAsync(projectId, plotFolderId);

            return(WithPlot(folder) ?? View(new EditPlotFolderViewModel(folder, CurrentUserIdOrDefault)));
        }