Beispiel #1
0
 public Repository(IAddressesRepository addressesRepository, IAppointmentsRepository appointmentsRepository,
                   ICarTrademarksRepository carTrademarksRepository, ICarWorkshopsRepository carWorkshopsRepository,
                   ICountriesRepository countriesRepository, IUsersRepository usersRepository)
 {
     Addresses     = addressesRepository;
     Appointments  = appointmentsRepository;
     CarTrademarks = carTrademarksRepository;
     CarWorkshops  = carWorkshopsRepository;
     Countries     = countriesRepository;
     Users         = usersRepository;
 }
 public CarWorkshopCarTrademarksResolver(ICarTrademarksRepository carTrademarksRepository)
 {
     _carTrademarksRepository = carTrademarksRepository;
 }
        private static async Task <CarTrademarkModel> ResolveAsync(ICarTrademarksRepository carTrademarksRepository, Expression <Func <CarTrademarkModel, bool> > expression)
        {
            var models = await carTrademarksRepository.FindByConditionAsync(expression);

            return(models.FirstOrDefault());
        }
 public static CarTrademarkModel Resolve(this ICarTrademarksRepository source, Expression <Func <CarTrademarkModel, bool> > expression)
 {
     return(Sync.Run(() => ResolveAsync(source, expression)));
 }
Beispiel #5
0
 public AppointmentUserCarTrademarkModelResolver(ICarTrademarksRepository carTrademarksRepository)
 {
     _carTrademarksRepository = carTrademarksRepository;
 }