public HashSet <string> DeleteValidation(vBookedTrain parameters) { return(ValidationMessages); }
public Task DeleteAsync(vBookedTrain parameters) { throw new NotImplementedException(); }
public async Task UpdateAsync(vBookedTrain entity) { await Uow.RegisterDirtyAsync(entity); await Uow.CommitAsync(); }
public HashSet <string> UpdateValidation(vBookedTrain entity) { return(ValidationMessages); }
public async Task AddAsync(vBookedTrain entity) { await Uow.RegisterNewAsync(entity); await Uow.CommitAsync(); }
public async Task <object> GetBy(vBookedTrain parameters) { throw new NotImplementedException(); }
public async Task <object> GetAsync(vBookedTrain parameters) { return(await Uow.Repository <vBookedTrain>().FindByAsync(t => t.TravellerId == parameters.TravellerId && t.TrainId == parameters.TrainId)); }