Beispiel #1
0
        public Int64 Insert(ExpenseDetails objcategory)
        {
            Int64 result = 0;

            try
            {
                Cls_ExpenseDetails_db objCls_ExpenseDetails_db = new Cls_ExpenseDetails_db();
                result = Convert.ToInt64(objCls_ExpenseDetails_db.Insert(objcategory));
                return(result);
            }
            catch (Exception ex)
            {
                //ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(result);
            }
        }
Beispiel #2
0
        public ExpenseDetails  SelectById(Int64 id)
        {
            ExpenseDetails objcategory = new ExpenseDetails();

            try
            {
                Cls_ExpenseDetails_db objCls_ExpenseDetails_db = new Cls_ExpenseDetails_db();
                objcategory = objCls_ExpenseDetails_db.SelectById(id);
                return(objcategory);
            }
            catch (Exception ex)
            {
                //  ErrHandler.writeError(ex.Message, ex.StackTrace);
                return(objcategory);
            }
        }