public Task <PlanningModel[]> Plannings([Inject] IPlanningReadRepository repository) { var query = repository.GetQuery(); query = query.Fetch(x => x.MarineUnits); query = query.Fetch(x => x.AircraftContracts); return(Task.FromResult(query.ToArray())); }
public PlanningMutations( ICommandRouter commandRouter, IPlanningReadRepository planningReadRepository, IAppSettingsRetriever appSettingsRetriever) { _planningReadRepository = planningReadRepository; _appSettingsRetriever = appSettingsRetriever; _commandRouter = commandRouter; }
public Task <PlanningModel> Planning([Inject] IPlanningReadRepository repository, Guid id) { return(Task.FromResult(repository.GetById(id))); }