public async Task DeleteAsync(int id)
 {
     try
     {
         await meetingService.DeleteAsync(id);
     }
     catch (Exception ex)
     {
         logger.Error($"Exception occured in DeleteAsync", ex);
     }
 }
Exemplo n.º 2
0
        public async Task <IActionResult> DeleteAsync(int meetingId)
        {
            var result = await _meetingService.DeleteAsync(meetingId);

            if (!result.Success)
            {
                return(BadRequest(result.Message));
            }
            var meetingResource = _mapper.Map <Meeting, MeetingResource>(result.Resource);

            return(Ok(meetingResource));
        }
        // GET: Meetings/Delete/5
        public async Task <ActionResult> Delete(int id)
        {
            await meetingService.DeleteAsync(id);

            return(RedirectToAction("Index"));
        }
Exemplo n.º 4
0
        public async Task <ActionResult <string> > DeleteMeeting(int id)
        {
            await meetingService.DeleteAsync(id);

            return(Ok("Deleted"));
        }
 public async Task DeleteAsync(int id)
 {
     logger.Info($"Deleting meeting {id}");
     await meetingService.DeleteAsync(id);
 }
Exemplo n.º 6
0
 public async Task DeleteAsync(int id)
 {
     await policy.ExecuteAsync(async() => await meetingService.DeleteAsync(id));
 }
Exemplo n.º 7
0
 public async Task <IActionResult> Delete(long id)
 {
     return(HandleServiceResponse(await _service.DeleteAsync(GetClaims(), id)));
 }