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

            return(Success(id));
        }