示例#1
0
 public async Task <Models.OtErp.TblSoCustomer> CreateTblSoCustomer(Models.OtErp.TblSoCustomer tblSoCustomer)
 {
     try
     {
         OnTblSoCustomerCreated(tblSoCustomer);
         context.TblSoCustomers.Add(tblSoCustomer);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         return(null);
     }
     return(tblSoCustomer);
 }
示例#2
0
 partial void OnTblSoCustomerGet(Models.OtErp.TblSoCustomer item);
示例#3
0
 partial void OnTblSoCustomerDeleted(Models.OtErp.TblSoCustomer item);
示例#4
0
 partial void OnTblSoCustomerCreated(Models.OtErp.TblSoCustomer item);
示例#5
0
        public async Task <Models.OtErp.TblSoCustomer> UpdateTblSoCustomer(int?customerSeq, Models.OtErp.TblSoCustomer tblSoCustomer)
        {
            try
            {
                OnTblSoCustomerUpdated(tblSoCustomer);
                context.TblSoCustomers.Update(tblSoCustomer);
                context.SaveChanges();
            }
            catch (Exception ex)
            {
                return(null);
            }

            return(tblSoCustomer);
        }