Ejemplo n.º 1
0
        public async Task <IActionResult> insertnewUserRole([FromBody] user_role body)
        {
            await Db.Connection.OpenAsync();

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

            result.UserId = body.UserId;
            result.RoleId = body.RoleId;


            await query.insertnewUserRole(result);

            return(new OkObjectResult(result));
        }