Exemplo n.º 1
0
        public ActionResult Edit(int id)
        {
            try
            {
                var contactInfoViewModel = _iContactInfoService.GetContactInfo(id);
                if (contactInfoViewModel != null)
                {
                    //return View();
                    return(PartialView("_Edit", contactInfoViewModel));
                }

                return(RedirectToAction("Index", "Home"));
            }
            catch (Exception ex)
            {
                ErrorLog(ex);
                return(RedirectToAction("Index", "Home"));
            }
        }
Exemplo n.º 2
0
        public ActionResult GetContactInfo()
        {
            var ContactInfoList = _contactInfoService.GetContactInfo();

            return(View(ContactInfoList));
        }