public bool UpdateTributePackage(UpdateTribute updateTribute) { return FacadeManager.TributeManager.UpdateTributePackage(updateTribute); }
public bool UpdateNewTributeUrlTributeTypeinAlltables(UpdateTribute _objUpdateTribute, Tributes _newTribute) { return FacadeManager.TributeManager.UpdateNewTributeUrlTributeTypeinAlltables(_objUpdateTribute, _newTribute); }
public bool UpdateTributeExpiry(UpdateTribute updateTribute) { return FacadeManager.TributeManager.UpdateTributeExpiry(updateTribute); }
public bool UpdateTributePackage(UpdateTribute updateTribute) { bool OutputResult = false; if (updateTribute != null) { try { //sets the parameters string[] strParam = { UpdateTribute.UpdateTributeEnum.TributeId.ToString(), UpdateTribute.UpdateTributeEnum.PackageId.ToString(), UpdateTribute.UpdateTributeEnum.EndDate.ToString() }; //sets the types of parameters DbType[] dbType = { DbType.Int64, DbType.Int64, DbType.DateTime }; //sets the values in the entity to the parameters object[] objValue = { updateTribute.TributeId, updateTribute.PackageId, updateTribute.EndDate }; //sends request to update record and get the identity of the record inserted base.UpdateRecord("usp_UpdateTributePackage", strParam, dbType, objValue); OutputResult = true; } catch (Exception ex) { OutputResult = false; } } return OutputResult; }
public UpdateTribute GetTrbDetailOnTributeId(int tributeId) { UpdateTribute objtrb = new UpdateTribute(); try { if (!Equals(tributeId, 0)) { object[] param = { tributeId }; DataSet dsTributes = GetDataSet("usp_GetTributeDetailOnTributeId", param); if (dsTributes.Tables.Count > 0) { if (dsTributes.Tables[0].Rows.Count > 0) { objtrb.TributeId = int.Parse(dsTributes.Tables[0].Rows[0][0].ToString()); objtrb.TributeName = dsTributes.Tables[0].Rows[0][1].ToString(); objtrb.TributeUrl = dsTributes.Tables[0].Rows[0][2].ToString(); objtrb.TypeDescription = dsTributes.Tables[0].Rows[0][3].ToString(); objtrb.PackageId = int.Parse(dsTributes.Tables[0].Rows[0][4].ToString()); objtrb.TributeType = int.Parse(dsTributes.Tables[0].Rows[0][5].ToString()); objtrb.CreatedBy = int.Parse(dsTributes.Tables[0].Rows[0][6].ToString()); objtrb.PackageName = dsTributes.Tables[0].Rows[0][7].ToString(); if (!(string.IsNullOrEmpty(dsTributes.Tables[0].Rows[0][8].ToString()))) objtrb.EndDate = DateTime.Parse(dsTributes.Tables[0].Rows[0][8].ToString()); if (!(string.IsNullOrEmpty(dsTributes.Tables[0].Rows[0][9].ToString()))) objtrb.Date1 = DateTime.Parse(dsTributes.Tables[0].Rows[0][9].ToString()); if (!(string.IsNullOrEmpty(dsTributes.Tables[0].Rows[0][10].ToString()))) objtrb.Date2 = DateTime.Parse(dsTributes.Tables[0].Rows[0][10].ToString()); } } } } catch (Exception ex) { throw ex; return objtrb; } return objtrb; }
public bool UpdateNewTributeUrlTributeTypeinAlltables(UpdateTribute _objUpdateTribute, Tributes _newTribute) { bool result = false; try { if (_objUpdateTribute != null) { object[] param = { _objUpdateTribute.TributeId, _objUpdateTribute.TributeUrl, _objUpdateTribute.TypeDescription, _newTribute.TributeUrl, _newTribute.TypeDescription, _newTribute.Date1, _newTribute.Date2 }; DataSet dsTrbId = GetDataSet("usp_UpdateNewTributeUrlTributeTypeinAlltables", param); if (dsTrbId.Tables[0].Rows.Count > 0) { if (!string.IsNullOrEmpty(dsTrbId.Tables[0].Rows[0]["Result"].ToString())) result = bool.Parse(dsTrbId.Tables[0].Rows[0]["Result"].ToString()); } } } catch (Exception ex) { result = false; } return result; }
public bool UpdateTributePackage(UpdateTribute updateTribute) { TributeResource objResource = new TributeResource(); return objResource.UpdateTributePackage(updateTribute); }
public bool UpdateTributeExpiry(UpdateTribute objUTrb) { TributeResource objResource = new TributeResource(); return objResource.UpdateTributeExpiry(objUTrb); }
public bool UpdateNewTributeUrlTributeTypeinAlltables(UpdateTribute _objUpdateTribute, Tributes _newTribute) { TributeResource objResource = new TributeResource(); return objResource.UpdateNewTributeUrlTributeTypeinAlltables(_objUpdateTribute, _newTribute); }
public int GetTrbDetailOnTributeId(int tributeId) { int packageId=0; TributeResource objResource = new TributeResource(); UpdateTribute objtrb = new UpdateTribute(); objtrb = objResource.GetTrbDetailOnTributeId(tributeId); if (objtrb != null) { packageId = objtrb.PackageId; } return packageId; }