public static AD CreateUser(AD User) { AD inserted = ADDB.CreateUser(User); PaymentDB.CreatePayment(inserted.UserId); SAPHRDB.CreateSAPHR(inserted.UserId, inserted.Username); return(inserted); }
public bool TransferMoneyWithUID(int UID, decimal quota) { ISAPHRDB sAPHRDB = new SAPHRDB(); ISAPHRManager sAPHRManager = new SAPHRManager(sAPHRDB); string username = sAPHRManager.GetUsernameByUID(UID); return(TransferMoneyWithUsername(username, quota)); }
public Account GetAccountByUID(int UID) { ISAPHRDB sAPHRDB = new SAPHRDB(); ISAPHRManager sAPHRManager = new SAPHRManager(sAPHRDB); string username = sAPHRManager.GetUsernameByUID(UID); if (username == null) { return(null); } return(GetAccountByUsername(username)); }
public static int GetIdByUsername(string username) { return(SAPHRDB.GetIdByUsername(username)); }