public async Task <ActionResult> _PersonalForm(string FormType, int ID) { Personal personal = new Personal(); if (FormType == "Add") { return(PartialView("_create", personal)); } else { List <Division> result = await DivisionApiRequestHelper.GetDivisionName(); return(PartialView("_list", result)); } }
// Get Division public async Task <ActionResult> GetDivision() { List <Division> result = await DivisionApiRequestHelper.GetDivisionName(); return(Json(result, JsonRequestBehavior.AllowGet)); }