/// <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));
        }
Exemple #2
0
        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>());
 }
Exemple #4
0
 public Partner GetPartner(int Id)
 {
     return(_partnerRepository.FindById(Id));
 }
Exemple #5
0
        public IActionResult Edit(int id)
        {
            var model = _partnerRepository.FindById(id);

            return(View(model));
        }