public void EditActivity(EditActivityModel editActivityModel)
 {
     var activity = _context.Set<Activity>().FirstOrDefault(a => a.ActivityId == editActivityModel.ActivityId);
     activity.SetValues(editActivityModel.Name,
                        editActivityModel.StartAt,
                        editActivityModel.EndAt,
                        editActivityModel.ActivityType);
 }
 public ActionResult Edit(EditActivityModel editActivityModel)
 {
     _activityService.EditActivity(editActivityModel);
     return RedirectToAction("Index");
 }
 public ActionResult Edit(EditActivityModel editActivityModel)
 {
     _bus.Send(editActivityModel);
     return RedirectToAction("Index"); 
 }