public List <Gender> GetAllGenderTitle() { List <Gender> genders; try { genders = _genderRepository.Filter(x => x.IsActive == true).ToList(); } catch (Exception exception) { throw new Exception(exception.Message); } return(genders); }