public static shopInfo GetModel(string hotelID) { IHotelAppService service = IocManager.Instance.Resolve <IHotelAppService>(); if (service == null) { return(null);; } else { var hotelDto = service.GetHotelInfo(hotelID); return(ConvertFromDto(hotelDto)); } }
public HotelsController(IHotelAppService hotelAppService) { HotelAppService = hotelAppService; }
public HotelsController(TestingEstrategyTurismDbContext context) { _context = context; _hotelRepository = new HotelRepository(_context); _hotelAppService = new HotelAppService(_hotelRepository); }
public HotelController(IHostingEnvironment hostingEnvironment, IHotelAppService appService) { _hostingEnvironment = hostingEnvironment; _appService = appService; }