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