public async Task <IActionResult> CreateAsync([FromBody] AgentCreateRequest request) { if (request == null) { return(Fail(WebResource.CreateRequestIsEmpty)); } var id = await AgentService.CreateAsync(request); return(Success(id)); }