internal int SaveERPConfig(tblConf_Module atblConf_Module) { try { _context.tblConf_Module.AddObject(atblConf_Module); _context.SaveChanges(); return(1); } catch (Exception) { throw; } }
internal int SaveCategory(tbl_Category categoryObj) { try { try { _context.tbl_Category.AddObject(categoryObj); _context.SaveChanges(); return(1); } catch (Exception) { throw; } } catch (Exception) { throw; } }
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; } }