public ActionResult ActivityList(bool active = true, string message = "") { ViewBag.Message = message; ViewBag.Title = active ? "Active Activities" : "Inactive Activities"; ViewBag.IsActive = active; var activities = _activityManager.RetrieveAllActivitySchedulesByActive(active); return(View(activities)); }
// This method populates the dgAllActivities data grid with All the activites that are planned private void populateAllActivities() { try { dgAllActivities.ItemsSource = _activityManager.RetrieveAllActivitySchedulesByActive(); } catch (Exception) { } }