// GET: Admin/PartnerTypes/Details/5 public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var partnerType = _partnerTypeFactory.GetPartnerType(id); if (partnerType == null) { return(NotFound()); } return(View(partnerType)); }
/// <summary> /// /// </summary> /// <param name="id">Partner Type Id</param> /// <returns></returns> public IActionResult ViewByPartner(int id) { // add error handling var model = _partnerFactory.GetPartnersForViewByPartner(id); ViewData["CategoryName"] = _partnerTypeFactory.GetPartnerType(id).Name; ViewData["CategoryId"] = id; return(View(model)); }