Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
ajayvishu committed Feb 23, 2024
1 parent 41b2243 commit e883cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions ReactwithDotnetCore/Controllers/WeatherForecastController.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;

namespace ReactwithDotnetCore.Controllers
Expand All @@ -8,10 +7,10 @@ namespace ReactwithDotnetCore.Controllers
[Route("[controller]")]
public class WeatherForecastController : ControllerBase
{
private static readonly string[] Summaries = new[]
{
private static readonly string[] Summaries =
[
"Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching"
};
];

private readonly ILogger<WeatherForecastController> _logger;

Expand Down
2 changes: 1 addition & 1 deletion ReactwithDotnetCore/Model/User.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ public class User
public string Username { get; set; } = string.Empty;
public string Password { get; set; } = string.Empty;
public string EmailAddress { get; set; } = string.Empty;
public DateTime DateOfJoin { get; set; }
public DateTime DateOfJoin { get; set; } = DateTime.Now;
}
}

0 comments on commit e883cac

Please sign in to comment.