public void Save(WholesalerClass WholeSaler)
        {
            WholeSaler.BrandCode = brand.BrandCode;

            using (DbManager db = new DbManager())
            {
                try
                {
                    if (WholeSaler.RecordNo != 0)
                    {
                        Accessor.Query.Update(db, WholeSaler);
                    }
                    else
                    {
                        Accessor.Query.Insert(db, WholeSaler);
                    }
                }
                catch (Exception except)
                {
                    throw new System.ArgumentException(except.Message);
                }
            }
        }
 public void Delete(WholesalerClass WholeSaler)
 {
     using (DbManager db = new DbManager())
     {
         Accessor.Query.Delete(db, WholeSaler);
     }
 }