public static List <DangNhap> GetAccounts()
 {
     return(DangNhap.GetAllAccounts());
 }
Esempio n. 2
0
 public static int Them(DangNhap dangNhap)
 {
     try
     {
         object rs = DataProvider.Instance.ExecuteNonQueryWithOutput("@IDDangNhap", "DangNhap_Them", dangNhap.IDDangNhap
             , dangNhap.IDNguoiDung, dangNhap.ThoiGian, dangNhap.DiaChiIP, dangNhap.HanhDong);
         return Convert.ToInt32(rs);
     }
     catch
     {
         return 0;
     }
 }