示例#1
0
 public async Task <Models.OtErp.TblGnAddressBook> CreateTblGnAddressBook(Models.OtErp.TblGnAddressBook tblGnAddressBook)
 {
     try
     {
         OnTblGnAddressBookCreated(tblGnAddressBook);
         context.TblGnAddressBooks.Add(tblGnAddressBook);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         return(null);
     }
     return(tblGnAddressBook);
 }
示例#2
0
        public async Task <Models.OtErp.TblGnAddressBook> UpdateTblGnAddressBook(int?addressBookSeq, Models.OtErp.TblGnAddressBook tblGnAddressBook)
        {
            try
            {
                OnTblGnAddressBookUpdated(tblGnAddressBook);
                context.TblGnAddressBooks.Update(tblGnAddressBook);
                context.SaveChanges();
            }
            catch (Exception ex)
            {
                return(null);
            }

            return(tblGnAddressBook);
        }
示例#3
0
 partial void OnTblGnAddressBookUpdated(Models.OtErp.TblGnAddressBook item);
示例#4
0
 partial void OnTblGnAddressBookGet(Models.OtErp.TblGnAddressBook item);