public async Task <IActionResult> GetFigureArea(long id)
        {
            var request = new GetFigureInfoRequest(id);

            FigureInfo figureInfo = await _mediator.Send(request);

            return(Content(figureInfo.Area.ToString(CultureInfo.InvariantCulture)));
        }
        public async Task <IActionResult> GetFigure(long id)
        {
            var request = new GetFigureInfoRequest(id);

            FigureInfo figureInfo = await _mediator.Send(request);

            return(Ok(figureInfo));
        }