public ActionResult GetAllEditApply() { CandidateRepository cr = new CandidateRepository(); List <EditApplyModel> EditApplyList = cr.GetAllEditApply();; List <ManageEditApplyDisplayModel> displayList = new List <ManageEditApplyDisplayModel>(); foreach (EditApplyModel eam in EditApplyList) { displayList.Add(new ManageEditApplyDisplayModel(eam)); } return(Json(displayList)); }