public async Task <JsonResponse> DeleteFavoriteLinkAsync(int linkId) { try { await _linksService.DeleteMyFavoriteLinkByIdAsync(linkId, base.User); return(new JsonResponse(null, HttpStatusCode.OK)); } catch (Exception ex) { await _logger.LogErrorAsync(ex.Message, ex).ConfigureAwait(false); // TODO: When creating a release, don't send ex.Message in response return(new JsonResponse(ex.Message, HttpStatusCode.BadRequest)); } }