Skip to content

Commit

Permalink
feat:add logs (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
duiapro authored Jan 22, 2024
1 parent e67e575 commit 31869da
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Web/MASA.PM.Web.Admin/Pages/Home/ProjectModal.razor.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright (c) MASA Stack All rights reserved.
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.

using Newtonsoft.Json;

namespace MASA.PM.Web.Admin.Pages.Home
{
public partial class ProjectModal
Expand Down Expand Up @@ -131,6 +133,9 @@ private async Task RemoveProjectAsync()

private async Task SubmitProjectAsync(FormContext context)
{
await Console.Out.WriteLineAsync($"Data:{JsonConvert.SerializeObject(_projectFormModel)}");
await Console.Out.WriteLineAsync($"Validate:{context.Validate()}");

if (context.Validate())
{
if (!_projectFormModel.HasValue)
Expand Down

0 comments on commit 31869da

Please sign in to comment.