Skip to content

Commit 31869da

Browse files
authored
feat:add logs (#426)
1 parent e67e575 commit 31869da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Web/MASA.PM.Web.Admin/Pages/Home/ProjectModal.razor.cs

+5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) MASA Stack All rights reserved.
22
// Licensed under the Apache License. See LICENSE.txt in the project root for license information.
33

4+
using Newtonsoft.Json;
5+
46
namespace MASA.PM.Web.Admin.Pages.Home
57
{
68
public partial class ProjectModal
@@ -131,6 +133,9 @@ private async Task RemoveProjectAsync()
131133

132134
private async Task SubmitProjectAsync(FormContext context)
133135
{
136+
await Console.Out.WriteLineAsync($"Data:{JsonConvert.SerializeObject(_projectFormModel)}");
137+
await Console.Out.WriteLineAsync($"Validate:{context.Validate()}");
138+
134139
if (context.Validate())
135140
{
136141
if (!_projectFormModel.HasValue)

0 commit comments

Comments
 (0)