public static bool UpdateAvatar(DTOUser obj)
 {
     Cls.CreateNewSqlCommand();
     Cls.AddParameter("AccountID", obj.AccountID);
     Cls.AddParameter("User_Image", obj.User_Image);
     return(Cls.ExecuteNonQuery("sp_User_Update_Avatar"));
 }
 public static bool Update(DTOUser obj)
 {
     Cls.CreateNewSqlCommand();
     Cls.AddParameter("AccountID", obj.AccountID);
     Cls.AddParameter("Email", obj.Email);
     Cls.AddParameter("FullName", obj.FullName);
     Cls.AddParameter("CellPhone", obj.CellPhone);
     Cls.AddParameter("Group_Id", obj.Group_Id);
     Cls.AddParameter("Gender", obj.Gender);
     Cls.AddParameter("Birthday", obj.Birthday);
     Cls.AddParameter("Country_ID", obj.Country_ID);
     Cls.AddParameter("Language_ID", obj.Language_ID);
     Cls.AddParameter("DateBegin", obj.DateBegin);
     return(Cls.ExecuteNonQuery("sp_User_Update"));
 }
 public static bool Insert(DTOUser obj)
 {
     Cls.CreateNewSqlCommand();
     Cls.AddParameter("Email", obj.Email);
     Cls.AddParameter("FullName", obj.FullName);
     Cls.AddParameter("Password", obj.Password);
     Cls.AddParameter("UserName", obj.UserName);
     Cls.AddParameter("Group_Id", obj.Group_Id);
     Cls.AddParameter("Gender", obj.Gender);
     Cls.AddParameter("Birthday", obj.Birthday);
     Cls.AddParameter("Country_ID", obj.Country_ID);
     Cls.AddParameter("Language_ID", obj.Language_ID);
     Cls.AddParameter("User_Image", obj.User_Image);
     Cls.AddParameter("DateBegin", obj.DateBegin);
     return(Cls.ExecuteNonQuery("sp_User_Insert"));
 }