Beispiel #1
0
        public async Task AddAsync(PassengerInvoice entity)
        {
            var spParameters = new SqlParameter[1];
            //  spParameters[0] = new SqlParameter() { ParameterName = "userid", Value = entity.UserId };


            await DbContextManager.StoreProc <StoreProcResult>("[dbo].spPassengerInvoice ", spParameters);

            try
            {
                await DbContextManager.CommitAsync();
            }
            catch (Exception e)
            {
                DbContextManager.RollbackTransaction();
            }
        }
Beispiel #2
0
 public Task DeleteAsync(PassengerInvoice parameters)
 {
     throw new NotImplementedException();
 }
Beispiel #3
0
 public HashSet <string> DeleteValidation(PassengerInvoice parameters)
 {
     return(ValidationMessages);
 }
Beispiel #4
0
        public async Task UpdateAsync(PassengerInvoice entity)
        {
            await Uow.RegisterDirtyAsync(entity);

            await Uow.CommitAsync();
        }
Beispiel #5
0
 public HashSet <string> UpdateValidation(PassengerInvoice entity)
 {
     return(ValidationMessages);
 }
Beispiel #6
0
 public Task <object> GetBy(PassengerInvoice parameters)
 {
     throw new NotImplementedException();
 }
        public async Task AddAsync(PassengerInvoice entity)
        {
            await Uow.RegisterNewAsync(entity);

            await Uow.CommitAsync();
        }