public IActionResult DeleteMeeting (string id) { if (string.IsNullOrEmpty(id)) { return(BadRequest("Please provide a valid id")); } var userInfo = User.ToRest(); //Request.ExtractAuth(User, _authenticationService); var result = _meetingService.DeleteMeeting(userInfo, Guid.Parse(id)); if (result.Key) { return(Ok(result.Value)); } return(BadRequest(result.Value)); }
public void Delete(MeetingId meeting) { MeetingService.DeleteMeeting(meeting.Id.Value); }
public async Task <IActionResult> Delete(int id) { var result = await _meetingService.DeleteMeeting(id); return(Ok(new ApiResponse <bool>(result))); }