Exemple #1
0
        public ActionResult Form(int?Id)
        {
            if (Id != null)
            {
                var modelData = repository.GetById(Id.Value);
                return(View(modelData));
            }

            return(View());
        }
        public Faq GetFaq(int id)
        {
            var faq = faqRepository.GetById(id);

            return(faq);
        }
Exemple #3
0
 public JsonResult Detail(int Id)
 {
     return(Json(repository.GetById(Id), JsonRequestBehavior.AllowGet));
 }