コード例 #1
0
        public async Task <MovementDetails> GetByMovementId(Guid movementId)
        {
            await authorization.EnsureAccessAsync(movementId);

            return(await context.MovementDetails
                   .SingleOrDefaultAsync(md => md.MovementId == movementId));
        }
コード例 #2
0
        public async Task <IEnumerable <MovementDateHistory> > GetByMovementId(Guid movementId)
        {
            await authorization.EnsureAccessAsync(movementId);

            return(await context.MovementDateHistories
                   .Where(mdh => mdh.MovementId == movementId)
                   .ToArrayAsync());
        }
コード例 #3
0
        public async Task <IEnumerable <MovementCarrier> > GetCarriersByMovementId(Guid movementId)
        {
            await authorization.EnsureAccessAsync(movementId);

            return(await context.MovementCarrier.Where(md => md.MovementId == movementId).ToArrayAsync());
        }