public async Task <Models.OtErp.TblGnPaymentTerm> CreateTblGnPaymentTerm(Models.OtErp.TblGnPaymentTerm tblGnPaymentTerm)
 {
     try
     {
         OnTblGnPaymentTermCreated(tblGnPaymentTerm);
         context.TblGnPaymentTerms.Add(tblGnPaymentTerm);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         return(null);
     }
     return(tblGnPaymentTerm);
 }
        public async Task <Models.OtErp.TblGnPaymentTerm> UpdateTblGnPaymentTerm(int?paymentTermSeq, Models.OtErp.TblGnPaymentTerm tblGnPaymentTerm)
        {
            try
            {
                OnTblGnPaymentTermUpdated(tblGnPaymentTerm);
                context.TblGnPaymentTerms.Update(tblGnPaymentTerm);
                context.SaveChanges();
            }
            catch (Exception ex)
            {
                return(null);
            }

            return(tblGnPaymentTerm);
        }
 partial void OnTblGnPaymentTermUpdated(Models.OtErp.TblGnPaymentTerm item);
 partial void OnTblGnPaymentTermGet(Models.OtErp.TblGnPaymentTerm item);