public ActionResult Index(HotelOfferModel model) { using (HotelsOfferingActivities activities = new HotelsOfferingActivities()) { var getOffersResult = activities.GetOffers(model.Filter, model.Sorting); return(View(getOffersResult.ReturnedObject)); } }
public ActionResult Index() { using (HotelsOfferingActivities activities = new HotelsOfferingActivities()) { var getOffersResult = activities.GetOffers(null, null); return(View(getOffersResult.ReturnedObject)); } }