Esempio n. 1
0
        public Result Post([FromBody] RoleCommandContract contract)
        {
            var menuValue = service.AddMenuValue();

            return(Result.Ok(menuValue.Id));
        }
Esempio n. 2
0
        public Result Post([FromBody] RoleCommandContract contract)
        {
            var commandRole = service.AttachToCommandAtRole(contract.RoleId, contract.CommandId);

            return(Result.Ok(commandRole.Id));
        }