public JsonResult GetNationality() { var nationalityModel = _clPatientStatisticsDB.GetNationality(); nationalityModel.Add(new GenericListModel { id = 0, name = "ALL", text = "ALL" }); var json = nationalityModel.DefaultIfEmpty(); return(Json(json, JsonRequestBehavior.AllowGet)); }
public ActionResult ListEmployeeByCategory() { var viewModel = new PRListOfEmployees() { StartDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day), EndDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day), HrList = personneldb.getAllHrCategory(), NationalityList = _clPatientStatisticsDB.GetNationality(), //GenderList = sexdb.getSex() }; return(View(viewModel)); }