Beispiel #1
0
        public GetStoresOutput GetStore(GetStoresInput input)
        {
            var store  = _storeRepository.GetById(input.Id);
            var output = GetStoresOutputMapper.Map(store);

            output.Success = true;

            return(output);
        }
Beispiel #2
0
        public GetStoresOutput GetAllStores()
        {
            var stores = _storeRepository.GetAll();
            var output = GetStoresOutputMapper.Map(stores);

            output.Success = true;

            return(output);
        }