public void UpdateAdminTributeUpdate(AdminTributeUpdate adminTributeUpdate)
 {
     FacadeManager.TributeManager.UpdateAdminTributeUpdate(adminTributeUpdate);
 }
        public void UpdateAdminTributeUpdate(AdminTributeUpdate adminTributeUpdate)
        {
            if (adminTributeUpdate != null)
            {
                try
                {
                    //sets the parameters
                    string[] strParam = {
                                            AdminTributeUpdate.AdminTributeUpdateEnum.TributeId.ToString(),
                                             AdminTributeUpdate.AdminTributeUpdateEnum.ChangeType.ToString(),
                                             AdminTributeUpdate.AdminTributeUpdateEnum.OldValue.ToString(),
                                            AdminTributeUpdate.AdminTributeUpdateEnum.NewValue.ToString()
                                        };
                    //sets the types of parameters
                    DbType[] dbType = {
                                        DbType.Int64,
                                        DbType.String,
                                        DbType.String,
                                        DbType.String
                                      };
                    //sets the values in the entity to the parameters
                    object[] objValue = {
                                            adminTributeUpdate.TributeId,
                                            adminTributeUpdate.ChangeType,
                                            adminTributeUpdate.OldValue,
                                            adminTributeUpdate.NewValue
                                        };

                    //sends request to update record and get the identity of the record inserted
                    base.UpdateRecord("usp_InsertAdminTributeUpdate", strParam, dbType, objValue);
                }
                catch (Exception ex)
                {
                    throw ex;
                }
            }
        }
        public IList<AdminTributeUpdate> GetAdminTransactions()
        {
            IList<AdminTributeUpdate> objList = new List<AdminTributeUpdate>();
                try
                {
                    object[] param = {};
                    DataSet dsThemes = GetDataSet("usp_GetAdminTributeUpdateTrans", param);

                    if (dsThemes.Tables.Count > 0)
                    {
                        if (dsThemes.Tables[0].Rows.Count > 0)
                        {
                            foreach (DataRow dr in dsThemes.Tables[0].Rows)
                            {
                                AdminTributeUpdate objATU = new AdminTributeUpdate();
                                objATU.TributeUpdateId = int.Parse(dr["TributeUpdateId"].ToString());
                                objATU.TributeId = int.Parse(dr["TributeId"].ToString());
                                objATU.ChangeType=dr["ChangeType"].ToString();
                                objATU.ModifiedDate = DateTime.Parse(dr["ModifiedDate"].ToString());
                                objATU.OldValue = dr["OldValue"].ToString();
                                objATU.NewValue = dr["NewValue"].ToString();
                                objList.Add(objATU);
                            }
                        }
                    }

                }
                catch (Exception ex)
                {
                    throw ex;
                }

                return objList;
        }
 public void UpdateAdminTributeUpdate(AdminTributeUpdate adminTributeUpdate)
 {
     TributeResource objTributeResource = new TributeResource();
     objTributeResource.UpdateAdminTributeUpdate(adminTributeUpdate);
 }