public async Task DeleteAsync(int id) { try { await meetingService.DeleteAsync(id); } catch (Exception ex) { logger.Error($"Exception occured in DeleteAsync", ex); } }
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")); }
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); }
public async Task DeleteAsync(int id) { await policy.ExecuteAsync(async() => await meetingService.DeleteAsync(id)); }
public async Task <IActionResult> Delete(long id) { return(HandleServiceResponse(await _service.DeleteAsync(GetClaims(), id))); }