public IHttpActionResult AddUser(UserModel usr) { if (usr.UserId > 0) { _manager.AddUser(usr); return(Ok("User updated successfully")); } else { _manager.AddUser(usr); return(Ok("User added successfully")); } }
public IHttpActionResult AddUser([FromBody] UserEntity user) { _ProjectManagerService.AddUser(user); return(Ok()); }