public CustomerServiceWrapper(ICustomerServices service) { //defining the mapping for AutoMapper Mapper.CreateMap<IList<CustomerDto>, IList<CloudyBank.PortableServices.Customers.CustomerDto>>(); Mapper.CreateMap<CustomerDto, CloudyBank.PortableServices.Customers.CustomerDto>(); this.service = service; //defining the delegate this.CustomerByIDDelegate = (i) => { App.Bind(); return Mapper.Map<CustomerDto, CloudyBank.PortableServices.Customers.CustomerDto>(service.GetCustomerById(i)); }; }
public CustomersController(ICustomerServices customerServices) { _customerServices = customerServices; }
public BanquetAPIController(ICustomerServices customerservice) { this._customerservice = customerservice; }
public CustomersController(ICustomerServices services) { this._services = services; }
public CustomerController(ICustomerRepository customerRepository, ICustomerServices customerServices) { _customerRepository = customerRepository; _customerServices = customerServices; }
public CustomersController(ILogger <CustomersController> logger, ICustomerServices customerServices) { _logger = logger; CustomerServices = customerServices; }
public ContactController(ICustomerServices db) { _db = db; }