public async Task <Models.OtErp.TblGnAddressBook> CreateTblGnAddressBook(Models.OtErp.TblGnAddressBook tblGnAddressBook) { try { OnTblGnAddressBookCreated(tblGnAddressBook); context.TblGnAddressBooks.Add(tblGnAddressBook); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnAddressBook); }
public async Task <Models.OtErp.TblGnAddressBook> UpdateTblGnAddressBook(int?addressBookSeq, Models.OtErp.TblGnAddressBook tblGnAddressBook) { try { OnTblGnAddressBookUpdated(tblGnAddressBook); context.TblGnAddressBooks.Update(tblGnAddressBook); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnAddressBook); }
partial void OnTblGnAddressBookUpdated(Models.OtErp.TblGnAddressBook item);
partial void OnTblGnAddressBookGet(Models.OtErp.TblGnAddressBook item);