/// <summary> /// List Categorys /// </summary> /// <param name="showall"></param> /// <returns></returns> public IActionResult Index(string showall) { var includeEmpty = showall == "true"; var cats = _categoryRepository.MenuData(); var featured = _partnerRepository.FindById(24); var model = new ServicesVM() { Categories = cats, FeaturedPartner = featured }; return(View(model)); }
public IActionResult Details(string id) { var model = _partnerRepository.FindById(int.Parse(id)); return(View(model)); }
public PartnerDTO FindById(int id) { return(_repo.FindById(id).Translate <Partner, PartnerDTO>()); }
public Partner GetPartner(int Id) { return(_partnerRepository.FindById(Id)); }
public IActionResult Edit(int id) { var model = _partnerRepository.FindById(id); return(View(model)); }