Need standard validations for Start and End Dates. Should include:
- End Date > Start Date.
- End Date < Today Date.
- Start Date < End Date
So far tried below approaches, but these do not work completely:
Edit
[HttpPost]
public IActionResult Time(Time modeo)
{
if (ModelState.IsValid)
{
// add your code here.....
}
//return model and error message
return View(modeo);
}