Beispiel #1
0
        public ActionResult Delete(BootcampTestTypeViewModel model)
        {
            ResponseResult result = BootcampTestTypeRepo.Delete(model);

            return(Json(new
            {
                success = result.Success,
                message = result.ErrorMessage,
                entity = result.Entity
            }, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
 public ActionResult Edit(long id)
 {
     return(PartialView("_Edit", BootcampTestTypeRepo.ById(id)));
 }
Beispiel #3
0
 public ActionResult Delete(long id)
 {
     return(PartialView("_Delete", BootcampTestTypeRepo.ById(id)));
 }
Beispiel #4
0
 public ActionResult List(string search = "")
 {
     ViewBag.id = new SelectList(UserRepo.All(), "id", "username");
     return(PartialView("_List", BootcampTestTypeRepo.All(search)));
 }