Beispiel #1
0
        public DataTable SelectAll()
        {
            DataTable dt = new DataTable();

            try
            {
                Cls_VendorMaster_db objCls_VendorMaster_db = new Cls_VendorMaster_db();
                dt = objCls_VendorMaster_db.SelectAll();
                return(dt);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }
Beispiel #2
0
        public DataTable getCity_byStateId(Int64 stateId)
        {
            DataTable dt = new DataTable();

            try
            {
                Cls_VendorMaster_db objCls_VendorMaster_db = new Cls_VendorMaster_db();
                dt = objCls_VendorMaster_db.getCity_byStateId(stateId);
                return(dt);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(dt);
            }
        }
Beispiel #3
0
        public bool Delete(Int32 id)
        {
            try
            {
                Cls_VendorMaster_db objCls_VendorMaster_db = new Cls_VendorMaster_db();

                if (objCls_VendorMaster_db.Delete(id))
                {
                    return(true);
                }
                return(false);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
Beispiel #4
0
        public Int64 Update(VendorMaster objVendorMaster)
        {
            Int64 result = 0;

            try
            {
                Cls_VendorMaster_db objCls_VendorMaster_db = new Cls_VendorMaster_db();

                result = Convert.ToInt64(objCls_VendorMaster_db.Update(objVendorMaster));
                return(result);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
Beispiel #5
0
        public VendorMaster SelectById(Int64 id)
        {
            VendorMaster objVendorMaster = new VendorMaster();

            try
            {
                Cls_VendorMaster_db objCls_VendorMaster_db = new Cls_VendorMaster_db();

                objVendorMaster = objCls_VendorMaster_db.SelectById(id);
                return(objVendorMaster);
            }
            catch (Exception ex)
            {
                ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objVendorMaster);
            }
        }