I have two date example 12.1.2019 12.2.2019
 public class DatelistController : Controller
{
    [HttpGet]
    public ActionResult Index()
    {
       DateTime start = new DateTime(2012, 2, 1);
        DateTime end = new DateTime(2012, 3, 1); ;
        var dates = new List<DateTime>();
        for (var dt = start; dt <= end; dt = dt.AddDays(1))
        {
            dates.Add(dt);
        }
        Enumerable.Range(0, 1 + end.Subtract(start).Days)
         .Select(offset => start.AddDays(offset))
        .ToArray();
        ViewData["AllDate"] = new SelectList(dates);
        return View();
    }
Index
> @foreach (var item in ViewData["AllDate"] as List<DateTime>)
{
    <tr> 
    <td style="font-family:Verdana; font-size:12px;">@item</td>
        </tr>
        }
I can't Index page there are no structures that I built.
What i want to do it;
Select Start Date and End Date is two date between get All Date's then later I will put the value on the days obtained using the check box
I would be happy if you help Thank you!
 
    