public IActionResult AddUser(Users user) { if (!ModelState.IsValid) { return(BadRequest(ModelState)); } bool status = UserModal.AddUser(user); if (status) { return(Ok()); } else { return(NotFound()); } }