public ActionResult GetAll() { BiodataRepo biodataRepo = new BiodataRepo(); List <x_biodata> ListBiodata = biodataRepo.GetAll(); return(Json(ListBiodata, JsonRequestBehavior.AllowGet)); }
public ActionResult Create() { ViewBag.BiodataList = new SelectList(BiodataRepo.All(), "Id", "NPM"); ViewBag.CategoryList = new SelectList(CategoryRepo.All(), "Id", "Name"); ViewBag.BookList = new SelectList(BookRepo.ByCategory(0), "Id", "Judul"); return(PartialView("_Create", new PeminjamanViewModel())); }
public ActionResult Search(string search) { BiodataRepo biodataRepo = new BiodataRepo(); List <x_biodata> SearchBiodata = biodataRepo.Search(search); return(Json(SearchBiodata, JsonRequestBehavior.AllowGet)); }
public ActionResult OrderBy(string orderBy) { BiodataRepo biodataRepo = new BiodataRepo(); List <x_biodata> OrderBiodata = biodataRepo.OrderBy(orderBy); return(Json(OrderBiodata, JsonRequestBehavior.AllowGet)); }
public ActionResult CreatePart(int id) { //id=>Batch ID ClassViewModel model = new ClassViewModel() { batch_id = id }; ViewBag.BioName = new SelectList(BiodataRepo.All(null), "id", "name"); return(PartialView("_CreatePart", model)); }
public ActionResult Delete(BiodataViewModel model) { ResponseResult result = BiodataRepo.Delete(model); return(Json(new { success = result.Success, message = result.ErrorMessage, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }
public ActionResult Deactivate(BiodataViewModel model) { ResponResultViewModel result = BiodataRepo.Update2(model); return(Json(new { success = result.Success, message = result.Message, entity = result.Entity }, JsonRequestBehavior.AllowGet)); }
public ActionResult EditSimpan(Biodata biodata) { biodata.modified_by = Convert.ToInt64(Session["foo"]); if (BiodataRepo.Editbiodata(biodata)) { return(Json(new { EditSimpan = "Berhasil" }, JsonRequestBehavior.AllowGet)); //return json digunakan untuk memunculkan alert } else { return(Json(new { EditSimpan = "Gagal" }, JsonRequestBehavior.AllowGet)); } }
public ActionResult Edit(long id) { ViewBag.rdyes = null; ViewBag.rdno = null; if (BiodataRepo.GetGender(id).Equals("M")) { ViewBag.rdyes = "checked"; } else if (BiodataRepo.GetGender(id).Equals("F")) { ViewBag.rdno = "checked"; } ViewBag.BootcampTestTypeList = new SelectList(BiodataRepo.ByBtt(), "id", "name"); return(PartialView("_Edit", BiodataRepo.ById(id))); }
public ActionResult Search(string search = "") { return(PartialView("_Search", BiodataRepo.GetBySearch(search))); }
public ActionResult SelectMaritalStatus() { return(Json(BiodataRepo.GetSelectMaritalStatus(), JsonRequestBehavior.AllowGet)); }
public ActionResult SelectIdentityType() { return(Json(BiodataRepo.GetSelectIdentityType(), JsonRequestBehavior.AllowGet)); }
public ActionResult Create() { ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name"); return(PartialView("_Create")); }
public ActionResult Tampil() { return(Json(BiodataRepo.GetAll(), JsonRequestBehavior.AllowGet)); }
public ActionResult Edit(int id) { return(PartialView("_Edit", BiodataRepo.GetBiodata(id))); }
public ActionResult Deactivate(int id) { return(PartialView("_Deactivate", BiodataRepo.GetBiodata(id))); }
public ActionResult Edit(int id) { ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name"); return(PartialView("_Edit", AssignmentRepo.GetAssignment(id))); }
public ActionResult List(string search) { return(PartialView("_List", BiodataRepo.All(search))); }
public ActionResult Edit(int id) { ViewBag.Biodatalist = new SelectList(BiodataRepo.All(""), "id", "name"); return(PartialView("_Edit", MonitoringRepo.GetMonitoring(id))); }
public ActionResult Delete(long id) { return(PartialView("_Delete", BiodataRepo.ById(id))); }
public ActionResult SelectReligion() { return(Json(BiodataRepo.GetSelectReligion(), JsonRequestBehavior.AllowGet)); }
public ActionResult List() { return(PartialView("_List", BiodataRepo.All())); }
public ActionResult AmbilData(int ID) { return(Json(BiodataRepo.GetByID(ID), JsonRequestBehavior.AllowGet)); }