Exemplo n.º 1
0
        public async Task <IActionResult> AddBlock(BlockRequest bData)
        {
            _logger.LogInformation($"Invoking endpoint: {this.HttpContext.Request.GetDisplayUrl()}");
            _logger.LogDebug($"Request - Adding Blocks data - {JsonConvert.SerializeObject(bData)}");
            var addEditResponse = await _blockService.AddBlock(bData);

            _logger.LogInformation($" Add Block {addEditResponse}");
            _logger.LogDebug($"Response - Adding Blocks data - {JsonConvert.SerializeObject(addEditResponse)}");
            return(Ok(new AddEditResponse
            {
                Status = addEditResponse.Status,
                Message = addEditResponse.Message,
            }));
        }