예제 #1
0
 internal int SaveERPConfig(tblConf_Module atblConf_Module)
 {
     try
     {
         _context.tblConf_Module.AddObject(atblConf_Module);
         _context.SaveChanges();
         return(1);
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #2
0
 internal int SaveCategory(tbl_Category categoryObj)
 {
     try
     {
         try
         {
             _context.tbl_Category.AddObject(categoryObj);
             _context.SaveChanges();
             return(1);
         }
         catch (Exception)
         {
             throw;
         }
     }
     catch (Exception)
     {
         throw;
     }
 }
예제 #3
0
        public int UpdateACLedger(tblAC_leg_LedgersTransaction_temp atblAC_leg_LedgersTransaction_temp, string trid)
        {
            try
            {
                tblAC_leg_LedgersTransaction_temp objtblAC_leg_LedgersTransaction_temp = _context.tblAC_leg_LedgersTransaction_temp.First(x => x.Transaction_Code == trid);

                objtblAC_leg_LedgersTransaction_temp.Ledger_Code = atblAC_leg_LedgersTransaction_temp.Ledger_Code;
                objtblAC_leg_LedgersTransaction_temp.Particulars = atblAC_leg_LedgersTransaction_temp.Particulars;
                objtblAC_leg_LedgersTransaction_temp.Nature      = atblAC_leg_LedgersTransaction_temp.Nature;
                objtblAC_leg_LedgersTransaction_temp.Edit_Date   = atblAC_leg_LedgersTransaction_temp.Edit_Date;
                objtblAC_leg_LedgersTransaction_temp.Edit_User   = atblAC_leg_LedgersTransaction_temp.Edit_User;
                _context.SaveChanges();
                return(1);
            }
            catch (Exception)
            {
                throw;
            }
        }