Skip to content

Commit e883cac

Browse files
committed
minor change
1 parent 41b2243 commit e883cac

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ReactwithDotnetCore/Controllers/WeatherForecastController.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using Microsoft.AspNetCore.Authorization;
2-
using Microsoft.AspNetCore.Cors;
32
using Microsoft.AspNetCore.Mvc;
43

54
namespace ReactwithDotnetCore.Controllers
@@ -8,10 +7,10 @@ namespace ReactwithDotnetCore.Controllers
87
[Route("[controller]")]
98
public class WeatherForecastController : ControllerBase
109
{
11-
private static readonly string[] Summaries = new[]
12-
{
10+
private static readonly string[] Summaries =
11+
[
1312
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
14-
};
13+
];
1514

1615
private readonly ILogger<WeatherForecastController> _logger;
1716

ReactwithDotnetCore/Model/User.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ public class User
55
public string Username { get; set; } = string.Empty;
66
public string Password { get; set; } = string.Empty;
77
public string EmailAddress { get; set; } = string.Empty;
8-
public DateTime DateOfJoin { get; set; }
8+
public DateTime DateOfJoin { get; set; } = DateTime.Now;
99
}
1010
}

0 commit comments

Comments
 (0)