public ActionResult Delete(PesertaViewModel model)
        {
            ResponseResult result = PesertaRepo.Delete(model);

            return(Json(new
            {
                success = result.Success,
                message = result.Message,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
 public ActionResult Detail(int id)
 {
     return(PartialView("_Detail", PesertaRepo.ById(id)));
 }
        public ActionResult Edit(int id)
        {
            PesertaViewModel model = PesertaRepo.ById(id);

            return(PartialView("_Edit", model));
        }
 public ActionResult List()
 {
     return(PartialView("_List", PesertaRepo.All()));
 }