public ActionResult AchiveData(IEnumerable <int> tripsToAchive) { try { if (tripsToAchive != null) { _tripService.ArchiveTrips(tripsToAchive); return(RedirectToAction("Index")); } else { return(RedirectToAction("Index")); } } catch (Exception ex) { return(Json(ex.Message)); } }