public ServiceOfferController(IOfferService proxy)
        {
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <JobPortal.Model.Offer, ManageOfferModel>();
            });

            _mapper     = config.CreateMapper();
            _offerProxy = proxy;
        }
        // GET: Offer

        public ServiceOfferController()
        {
            var config = new MapperConfiguration(cfg =>
            {
                cfg.CreateMap <JobPortal.Model.Offer, ManageOfferModel>();
            });

            _mapper     = config.CreateMapper();
            _offerProxy = new OfferReference.OfferServiceClient("OfferServiceHttpEndpoint");
            _orderProxy = new OrderReference.OrderServiceClient("OrderServiceHttpEndpoint");
            _userProxy  = new UserReference1.UserServiceClient("UserServiceHttpEndpoint1");
        }
Beispiel #3
0
 public OrderController()
 {
     _offerProxy = new OfferReference.OfferServiceClient("OfferServiceHttpEndpoint");
     _userProxy  = new UserReference1.UserServiceClient("UserServiceHttpEndpoint1");
     _orderProxy = new OrderReference.OrderServiceClient("OrderServiceHttpEndpoint");
 }