Ejemplo n.º 1
0
        public IActionResult AddAction([FromBody] roleactions newAction)
        {
            var _action = _userService.AddAction(newAction);

            if (_action == null)
            {
                return(BadRequest(new { message = "there is a problem with data in actions" }));
            }
            else
            {
                return(Ok(_action));
            }
        }