コード例 #1
0
 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);
 }
コード例 #2
0
        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);
        }
コード例 #3
0
 partial void OnTblGnPaymentTypeUpdated(Models.OtErp.TblGnPaymentType item);
コード例 #4
0
 partial void OnTblGnPaymentTypeGet(Models.OtErp.TblGnPaymentType item);