private void GetPosition() { List <EmployeePosition> maritalStatuses = EmployeeBAL.GetPosition(); if ((maritalStatuses != null) && maritalStatuses.Count > 0) { Response.Write(maritalStatuses.ToJSON()); } else { Response.Write("No Result"); } }