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

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