public Gender GetGenderById(int genderId) { Gender gender = new Gender(); try { gender = _genderRepository.FindOne(x => x.GenderId == genderId); } catch (Exception exception) { throw new Exception(exception.Message); } return(gender); }
public Gender GetGenderById(int genderId) { Gender gender = new Gender(); try { gender = _genderRepository.FindOne(x => x.GenderId == genderId); } catch (Exception exception) { throw new Exception(exception.Message); } return(gender); }