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); }
public async Task <IActionResult> GetById(Guid id) { FAGTextResponse result = await _mediator.Send(new GetFAGTextQuery(id)); return(Ok(result)); }