public IActionResult Post([FromBody] Users user) { if (user == null) { return(BadRequest()); } _userServices.AddUsers(user); return(CreatedAtRoute("Get", new { id = user.Id }, user)); }
public int Add(Users users) { return(iusersServices.AddUsers(users)); }