public int Register(string AccountName, string Pwd, string Phone) { int i = user.Register(AccountName, Pwd, Phone); List <Users> list = user.Login(AccountName, Pwd); if (i > 0) { logs.Add(list[0].ID, "注册", 1); } else { logs.Add(list[0].ID, "注册", 0); } return(i); }
public Task <Tuple <string, bool> > Register(string firstName, string lastName, string dob, string electoralId) { Tuple <string, bool> result = _userRepository.Register(firstName, lastName, dob, electoralId); return(Task.FromResult(result)); }