public JsonResult GetAllDesignationByDepartmentId(int departmentId) { List <Designation> designations = _idepartmentManager.GetAllDesignationByDepartmentId(departmentId); return(Json(designations, JsonRequestBehavior.AllowGet)); }