常用方法
常用方法
常用方法
常用方法
public IActionResult AddCity([FromBody] City request) { var response = new OperationResponse <bool>(); try { response.Data = _lookupService.AddCity(request); } catch (Exception exception) { response.State = ResponseState.Error; response.Messages.Add(exception.Message); _logger.LogError(exception, "Error in AddCity ==>" + exception.StackTrace, request); } return(new JsonResult(response)); }