Ejemplo n.º 1
0
        // GET: People/Details/5
        public IActionResult Details(int?id, string formView = null, bool isModal = true)
        {
            if (id == null || formView == null)
            {
                return(HttpNotFound());
            }

            var dto = _db.Find(id.GetValueOrDefault());

            if (dto == null)
            {
                return(HttpNotFound());
            }

            dto.formView = formView;
            dto.isModal  = isModal;
            return(PartialView(isModal ? "SCRUDmodal": "Details", dto));
        }
Ejemplo n.º 2
0
 public ActionResult Details(int id)
 {
     return(PartialView(Repository_person.Find(id)));
 }