Example #1
0
        public ActionResult Delete(int conferenceId)
        {
            var conference = _repository.GetConference(PortalSettings.PortalId, conferenceId);

            if (conference != null)
            {
                _repository.DeleteConference(conference.GetConferenceBase());
            }
            return(RedirectToDefaultRoute());
        }
Example #2
0
 public bool DeleteConference(int conferenceId)
 {
     try
     {
         _repository.DeleteConference(conferenceId);
     }
     catch
     {
         return(false);
     }
     return(true);
 }
Example #3
0
 public bool Delete(int id)
 {
     return(_conferenceRepository.DeleteConference(id));
 }