예제 #1
0
        public async Task SubmitChanges()
        {
            Project.Title          = Title;
            Project.Requirement    = Requirement;
            Project.Design         = Design;
            Project.CompletionDate = CompletionDate;

            await ProjectDataService.UpdateProjectAsync(Project);

            NavigationManager.NavigateTo($"/projects/detail/{Project.ID}");
        }
예제 #2
0
        public async Task SubmitChanges()
        {
            ProjectViewModel.Title          = Title;
            ProjectViewModel.Requirement    = Requirement;
            ProjectViewModel.Design         = Design;
            ProjectViewModel.CompletionDate = CompletionDate;

            ProjectSlug = ProjectViewModel.Title.ToSlug();

            await ProjectDataService.UpdateProjectAsync(ProjectViewModel);

            NavigationManager.NavigateTo($"projects/detail/{ProjectSlug}");
        }