Exemple #1
0
        public async Task <viewModel.CustomerView> Get([FromRoute] int customerId)
        {
            var view = new views.CustomerViews();

            return(await view.Get(customerId));
        }
Exemple #2
0
        public async Task <List <viewModel.CustomerView> > GetCustomersForEntity([FromRoute] int entityId)
        {
            var view = new views.CustomerViews();

            return(await view.GetCustomersForEntity(entityId));
        }
Exemple #3
0
        public async Task <List <viewModel.CustomerView> > All()
        {
            var views = new views.CustomerViews();

            return(await views.GetAll());
        }