public JArray PostEntity(Entities objEntity) //insert data to the user table { try { int entitiesid = _entities.NextSequenceId(objEntity); objEntity.entity_id = entitiesid; objEntity.audit_ts = DateTime.Now; _entities.Create(objEntity); return(GetEntity()); //IList<Gender> objGenders = new List<Gender>(); //objGenders = _gender.GetAllData(); //return JArray.Parse(objGenders.ToJson(new JsonWriterSettings { OutputMode = JsonOutputMode.Strict })); } catch (Exception) { throw; } }