public DataTable SelectAll()
        {
            DataTable dt = new DataTable();

            try
            {
                cls_CityMaster_db objCls_company_db = new cls_CityMaster_db();
                dt = objCls_company_db.SelectAll();
                return(dt);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }
        public bool Delete(Int64 cid)
        {
            try
            {
                cls_CityMaster_db objCls_company_db = new cls_CityMaster_db();

                if (objCls_company_db.Delete(cid))
                {
                    return(true);
                }
                return(false);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        public Int64 Update(CityMaster objcompany)
        {
            Int64 result = 0;

            try
            {
                cls_CityMaster_db objCls_company_db = new cls_CityMaster_db();

                result = Convert.ToInt64(objCls_company_db.Update(objcompany));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
        public CityMaster SelectById(Int64 cid)
        {
            CityMaster objcompany = new CityMaster();

            try
            {
                cls_CityMaster_db objCls_company_db = new cls_CityMaster_db();

                objcompany = objCls_company_db.SelectById(cid);
                return(objcompany);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objcompany);
            }
        }