This commit is contained in:
Sakurai Ryota 2025-02-09 11:29:38 +09:00
parent 03edbfc5d1
commit ffac08856f

View File

@ -20,7 +20,6 @@ public class RecordController : Controller
public async Task<IActionResult> Add(AddUriageModel model) public async Task<IActionResult> Add(AddUriageModel model)
{ {
Console.WriteLine(model.Date);
if (!ModelState.IsValid) if (!ModelState.IsValid)
{ {
return BadRequest(); return BadRequest();
@ -41,7 +40,7 @@ public class RecordController : Controller
return NotFound(); return NotFound();
} }
var from = DateTime.Now; var from = model.Date;
int year = from.Year; int year = from.Year;
int month = from.Month; int month = from.Month;
int day = from.Day; int day = from.Day;