public virtual CloudAccountDA.TestimonialsMasterDataTable GetData()
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     CloudAccountDA.TestimonialsMasterDataTable dataTable = new CloudAccountDA.TestimonialsMasterDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
 public virtual int Fill(CloudAccountDA.TestimonialsMasterDataTable dataTable)
 {
     this.Adapter.SelectCommand = this.CommandCollection[0];
     if (this.ClearBeforeFill)
     {
         dataTable.Clear();
     }
     return(this.Adapter.Fill(dataTable));
 }
 public virtual CloudAccountDA.TestimonialsMasterDataTable GetDataByTestimonialID(int?TestimonialID)
 {
     this.Adapter.SelectCommand = this.CommandCollection[2];
     if (TestimonialID.HasValue)
     {
         this.Adapter.SelectCommand.Parameters[1].Value = TestimonialID.Value;
     }
     else
     {
         this.Adapter.SelectCommand.Parameters[1].Value = DBNull.Value;
     }
     CloudAccountDA.TestimonialsMasterDataTable dataTable = new CloudAccountDA.TestimonialsMasterDataTable();
     this.Adapter.Fill(dataTable);
     return(dataTable);
 }
 private void BindTestimonials()
 {
     this._objTestimonialsMasterDt = this._objTestimonialsMasterBll.GetAllDataForPage();
     this.rpTestimonial.DataSource = (object)this._objTestimonialsMasterDt;
     this.rpTestimonial.DataBind();
     this._pds.DataSource          = (IEnumerable)this._objTestimonialsMasterDt.DefaultView;
     this._pds.AllowPaging         = true;
     this._pds.PageSize            = 6;
     this._pds.CurrentPageIndex    = this.CurrentPage;
     this.lnkbtnNext.Enabled       = !this._pds.IsLastPage;
     this.lnkbtnPrevious.Enabled   = !this._pds.IsFirstPage;
     this.rpTestimonial.DataSource = (object)this._pds;
     this.rpTestimonial.DataBind();
     this.DoPaging();
 }
 public virtual int Update(CloudAccountDA.TestimonialsMasterDataTable dataTable)
 {
     return(this.Adapter.Update(dataTable));
 }