public async Task <Models.OtErp.TblGnAddressBookType> CreateTblGnAddressBookType(Models.OtErp.TblGnAddressBookType tblGnAddressBookType) { try { OnTblGnAddressBookTypeCreated(tblGnAddressBookType); context.TblGnAddressBookTypes.Add(tblGnAddressBookType); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnAddressBookType); }
public async Task <Models.OtErp.TblGnAddressBookType> UpdateTblGnAddressBookType(int?addressBookTypeSeq, Models.OtErp.TblGnAddressBookType tblGnAddressBookType) { try { OnTblGnAddressBookTypeUpdated(tblGnAddressBookType); context.TblGnAddressBookTypes.Update(tblGnAddressBookType); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnAddressBookType); }
partial void OnTblGnAddressBookTypeCreated(Models.OtErp.TblGnAddressBookType item);
partial void OnTblGnAddressBookTypeGet(Models.OtErp.TblGnAddressBookType item);