Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
 public void Delete(MeetingId meeting)
 {
     MeetingService.DeleteMeeting(meeting.Id.Value);
 }
Ejemplo n.º 3
0
        public async Task <IActionResult> Delete(int id)
        {
            var result = await _meetingService.DeleteMeeting(id);

            return(Ok(new ApiResponse <bool>(result)));
        }