public JArray GetGender() { try { IList <Gender> objGender = new List <Gender>(); objGender = _gender.GetAllData(); return(JArray.Parse(objGender.ToJson(new JsonWriterSettings { OutputMode = JsonOutputMode.Strict }))); } catch (Exception) { throw; } }