public async Task <UcSaveGraphDataResponse> Handle(UcSaveGraphDataRequest message)
        {
            var entity = await this.repo.GetById(message.Id);

            entity.Data = message.Content;
            await this.repo.Update(entity);

            var response = new UcSaveGraphDataResponse(true);

            return(response);
        }
        public async Task <ActionResult> SaveGraphData([FromRoute] Guid id, [FromBody] SaveGraphDataRequest request)
        {
            var ucRequest = new UcSaveGraphDataRequest(id, request.Content);
            var result    = await this.saveGraphDataUseCase.Handle(ucRequest);

            var response = new JsonContentResult
            {
                StatusCode = (int?)(result.Success ? HttpStatusCode.OK : HttpStatusCode.BadRequest),
            };

            return(response);
        }