コード例 #1
0
        public async Task <IActionResult> GetLikes([FromRoute] Guid id)
        {
            try {
                var result = await PublicationService.GetLikes(id);

                return(Ok(result));
            } catch (Exception ex) {
                Logger.LogWarning(ex, "An error occured: " + ex.Message ?? "undefined");
                return(ExceptionHandlerService.Handle(ex, Request));
            }
        }