コード例 #1
0
        public async Task <ResponseModel> AddUser([FromBody] UsersDto user)
        {
            //Queues the specified work to run on the ThreadPool and returns
            //a task or Task<TResult> handle for that work.
            ResponseModel response = await Task.Run(() => {
                return(service_.AddUser(user));
            });

            return(response);
        }