public async Task UpdateBillTransitPass(BillTransitPassDto input) { var obj = this.repositoryBillTransitpass.FirstOrDefault(input.Id); obj.AdditionInformation = input.AdditionInformation; obj.BillId = input.BillId; obj.TransitPassId = input.TransitPassId; await this.repositoryBillTransitpass.UpdateAsync(obj); }
public async Task DeleteBillTransitPassAsync(BillTransitPassDto input) { var obj = this.repositoryBillTransitpass.FirstOrDefault(input.Id); if (obj == null) { throw new UserFriendlyException("Item not Found!"); } await this.repositoryBillTransitpass.DeleteAsync(obj); }