public ActionResult AdvertiseRequestList() { IEnumerable <JPurchaseAdvertise> purchaseAdvertise = advertiseUnitOfWork.GetAllAdvertiseRequest(); AdvertiseRequestListViewModels model = new AdvertiseRequestListViewModels(); model.advertiseRequestList = purchaseAdvertise; return(View(model)); }
public ActionResult FindPurchaseAdvertise(string packageType, string recruiterName) { AdvertiseRequestListViewModels model = new AdvertiseRequestListViewModels(); IEnumerable <JPurchaseAdvertise> purchaseAdvertise = advertiseUnitOfWork.FindAdvertiseRequest(packageType, recruiterName); model.advertiseRequestList = purchaseAdvertise; model.recruiterName = recruiterName; return(View("AdvertiseRequestList", model)); }
public ActionResult AdvertiseRequestListRecruiter() { string userID = advertiseUnitOfWork.AspNetUserRepository.Get(s => s.UserName == User.Identity.Name).FirstOrDefault().Id; IEnumerable <JPurchaseAdvertise> purchaseAdvertise = advertiseUnitOfWork.GetAllAdvertiseRequest(userID); AdvertiseRequestListViewModels model = new AdvertiseRequestListViewModels(); model.advertiseRequestList = purchaseAdvertise; return(View(model)); }