Exemplo n.º 1
0
 public async Task <Models.OtErp.TblGnAddressBookType> CreateTblGnAddressBookType(Models.OtErp.TblGnAddressBookType tblGnAddressBookType)
 {
     try
     {
         OnTblGnAddressBookTypeCreated(tblGnAddressBookType);
         context.TblGnAddressBookTypes.Add(tblGnAddressBookType);
         context.SaveChanges();
     }
     catch (Exception ex)
     {
         return(null);
     }
     return(tblGnAddressBookType);
 }
Exemplo n.º 2
0
        public async Task <Models.OtErp.TblGnAddressBookType> UpdateTblGnAddressBookType(int?addressBookTypeSeq, Models.OtErp.TblGnAddressBookType tblGnAddressBookType)
        {
            try
            {
                OnTblGnAddressBookTypeUpdated(tblGnAddressBookType);
                context.TblGnAddressBookTypes.Update(tblGnAddressBookType);
                context.SaveChanges();
            }
            catch (Exception ex)
            {
                return(null);
            }

            return(tblGnAddressBookType);
        }
Exemplo n.º 3
0
 partial void OnTblGnAddressBookTypeCreated(Models.OtErp.TblGnAddressBookType item);
Exemplo n.º 4
0
 partial void OnTblGnAddressBookTypeGet(Models.OtErp.TblGnAddressBookType item);