public ActionResult LeapYearsDisplay(LeapYearsData model)
        {
            var list = new LeapYearsResult();

            if (ModelState.IsValid)
            {

                var data = new LeapYearsData();

                data.BeginYear = model.BeginYear;
                data.EndYear = model.EndYear;

                for (var i = data.BeginYear.Value; i <= data.EndYear.Value; i++)
                {
                    if ((i % 4 == 0 && i % 100 != 0) || (i % 100 == 0 && i % 400 == 0))

                        list.LeapYrsList.Add(i);
                }

                return View("LeapYearsDisplay", list);
            }
            else
            {
                return View("LeapYearsRequest",model);
            }

        }
 // leap years
 public ActionResult LeapYearsRequest()
 {
     var model = new LeapYearsData();
     return View(model);
 }