Fix
This commit is contained in:
parent
03edbfc5d1
commit
ffac08856f
@ -20,7 +20,6 @@ public class RecordController : Controller
|
||||
|
||||
public async Task<IActionResult> Add(AddUriageModel model)
|
||||
{
|
||||
Console.WriteLine(model.Date);
|
||||
if (!ModelState.IsValid)
|
||||
{
|
||||
return BadRequest();
|
||||
@ -41,7 +40,7 @@ public class RecordController : Controller
|
||||
return NotFound();
|
||||
}
|
||||
|
||||
var from = DateTime.Now;
|
||||
var from = model.Date;
|
||||
int year = from.Year;
|
||||
int month = from.Month;
|
||||
int day = from.Day;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user