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); }
public JsonResult Detail(int Id) { return(Json(repository.GetById(Id), JsonRequestBehavior.AllowGet)); }