コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }