public async Task <ActionResult <Meme> > DeleteMeme(int id) { try { // save await _memeService.DeleteMemeAsync(id); return(Ok()); } catch (AppException ex) { // return error message if there was an exception return(BadRequest(new { message = ex.Message })); } }