Example #1
0
        public virtual IActionResult DeleteConferenceById([FromRoute] Guid conferenceId)
        {
            var result = _conferenceRepository.DeleteConferenceById(conferenceId);

            try
            {
                _conferenceRepository.Save();
                return(result);
            }
            catch (Exception e)
            {
                return(new BadRequestObjectResult(e.InnerException.Message));
            }
        }
Example #2
0
 public IActionResult DeleteConferenceById(int id)
 {
     _conferenceRepository.DeleteConferenceById(id);
     return(Ok());
 }