public ActionResult Delete(int conferenceId) { var conference = _repository.GetConference(PortalSettings.PortalId, conferenceId); if (conference != null) { _repository.DeleteConference(conference.GetConferenceBase()); } return(RedirectToDefaultRoute()); }
public bool DeleteConference(int conferenceId) { try { _repository.DeleteConference(conferenceId); } catch { return(false); } return(true); }
public bool Delete(int id) { return(_conferenceRepository.DeleteConference(id)); }