예제 #1
0
        /// <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);
        }
예제 #2
0
 public AddGettyImages()
 {
     ObjDal = new DAL();
 }
예제 #3
0
 public addimages()
 {
     ObjDal = new DAL();
 }