public async Task <MovementDetails> GetByMovementId(Guid movementId) { await authorization.EnsureAccessAsync(movementId); return(await context.MovementDetails .SingleOrDefaultAsync(md => md.MovementId == movementId)); }
public async Task <IEnumerable <MovementDateHistory> > GetByMovementId(Guid movementId) { await authorization.EnsureAccessAsync(movementId); return(await context.MovementDateHistories .Where(mdh => mdh.MovementId == movementId) .ToArrayAsync()); }
public async Task <IEnumerable <MovementCarrier> > GetCarriersByMovementId(Guid movementId) { await authorization.EnsureAccessAsync(movementId); return(await context.MovementCarrier.Where(md => md.MovementId == movementId).ToArrayAsync()); }