示例#1
0
        public async Task <IActionResult> insertnewAsync([FromBody] Insert body)
        {
            await Db.Connection.OpenAsync();

            var query  = new BlogPostQuery(Db);
            var result = new Insert();

            // result.id = body.id;
            result.roleName = body.roleName;


            await query.insertAsync(result);

            return(new OkObjectResult(result));
        }