示例#1
0
        public IActionResult AddUser(Users user)
        {
            if (!ModelState.IsValid)
            {
                return(BadRequest(ModelState));
            }
            bool status = UserModal.AddUser(user);

            if (status)
            {
                return(Ok());
            }
            else
            {
                return(NotFound());
            }
        }