Exemple #1
0
        public FAGTextResponse Map(FAGText fagText)
        {
            if (fagText == null)
            {
                return(null);
            }
            ;

            FAGTextResponse response = new FAGTextResponse
            {
                Id      = fagText.Id,
                Text    = fagText.Text,
                TextRTF = fagText.TextRTF,
                Iso3cc  = fagText.Iso3cc,
                Iso2cc  = fagText.Iso2cc
            };

            return(response);
        }
Exemple #2
0
        public async Task <IActionResult> GetById(Guid id)
        {
            FAGTextResponse result = await _mediator.Send(new GetFAGTextQuery(id));

            return(Ok(result));
        }