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"); }
public OrderController() { _offerProxy = new OfferReference.OfferServiceClient("OfferServiceHttpEndpoint"); _userProxy = new UserReference1.UserServiceClient("UserServiceHttpEndpoint1"); _orderProxy = new OrderReference.OrderServiceClient("OrderServiceHttpEndpoint"); }