コード例 #1
0
        protected async Task EditActivityLog()
        {
            if (NotificationId > 0)
            {
                await ActivityLogService.UpdateAsync(ActivityLogVM);
            }

            if (NotificationId > 0 && PageLinkName == "ActivityLogDateRange")
            {
                navigationManager.NavigateTo("/activitylogdaterange");
            }
            else if (NotificationId > 0 && PageLinkName == "ActivityLogUrl")
            {
                navigationManager.NavigateTo("/activityloggetbyurl");
            }
            else if (NotificationId > 0 && PageLinkName == "ActivityAppName")
            {
                navigationManager.NavigateTo("/activityloggetbyappname");
            }
            else
            {
                navigationManager.NavigateTo("/activitlogs");
            }
        }