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))); }
public async Task <ActionResult> Edit(int projectId, int plotFolderId) { var folder = await _plotRepository.GetPlotFolderAsync(projectId, plotFolderId); return(WithPlot(folder) ?? View(new EditPlotFolderViewModel(folder, CurrentUserIdOrDefault))); }