public ActionResult Index(DateTime StartDate, DateTime EndDate) { try { IEnumerable <TripViewModel> models = new Collection <TripViewModel>(); string status = _tripService.ArchiveTripsByDate(StartDate, EndDate); if (status == "Success") { ModelState.AddModelError("", "Successfully Archived."); } else { ModelState.AddModelError("", "Error occurred."); } return(View()); } catch (Exception ex) { throw ex; } }