Exemplo n.º 1
0
        public ActionResult <DtoThirdParty> GetThirdParty(int id)
        {
            DtoThirdParty dtoThirdParty = null;

            try
            {
                thirdPartyService.GetThirdPartyById(id);
            }
            catch (Exception ex)
            {
                var sb = new StringBuilder();
                sb.AppendLine($"Error message:{ex.Message}");
                sb.AppendLine($"Error stack trace:{ex.StackTrace}");
                logger.LogError(sb.ToString());
            }


            return(dtoThirdParty);
        }