Esempio n. 1
0
        /// <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));
        }