/// <summary> /// Get All Site details /// </summary> /// <param name="siteId"></param> /// <param name="NetWorkID"></param> /// <returns></returns> public bool GetAllsitdetails(int siteId, string NetWorkID) { bool flag = false; DataTable _dt = new DataTable(); DAL ObjDal = new CommonLib.DAL(Function.GetnetworkIDwithconnectionstring(NetWorkID)); SqlParameter[] msgpara = { new SqlParameter("@SiteID", SqlDbType.Int) }; msgpara[0].Value = siteId; _dt = ObjDal.GetDataTable(CommandType.StoredProcedure, "GettyAPI_AK_SP_Getsitedetails", msgpara); if (_dt != null) { if (_dt.Rows.Count > 0) { foreach (DataRow dr in _dt.Rows) { SiteUrl = dr["siteurl"].ToString(); if (dr["IsImageServer"].ToString().Trim().ToUpper() == "Y") { ImageServer = true; } else { ImageServer = false; } flag = true; } } } return(flag); }
public AddGettyImages() { ObjDal = new DAL(); }
public addimages() { ObjDal = new DAL(); }