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

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