public async Task <Models.OtErp.TblGnPaymentType> CreateTblGnPaymentType(Models.OtErp.TblGnPaymentType tblGnPaymentType) { try { OnTblGnPaymentTypeCreated(tblGnPaymentType); context.TblGnPaymentTypes.Add(tblGnPaymentType); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnPaymentType); }
public async Task <Models.OtErp.TblGnPaymentType> UpdateTblGnPaymentType(int?paymentTypeSeq, Models.OtErp.TblGnPaymentType tblGnPaymentType) { try { OnTblGnPaymentTypeUpdated(tblGnPaymentType); context.TblGnPaymentTypes.Update(tblGnPaymentType); context.SaveChanges(); } catch (Exception ex) { return(null); } return(tblGnPaymentType); }
partial void OnTblGnPaymentTypeUpdated(Models.OtErp.TblGnPaymentType item);
partial void OnTblGnPaymentTypeGet(Models.OtErp.TblGnPaymentType item);