コード例 #1
0
        public FindAllNationalitiesResponse FindAllNationalities()
        {
            FindAllNationalitiesResponse response = new FindAllNationalitiesResponse();

            try
            {
                response.Nationalities = _nationalityRepository.Read();
                response.Success       = true;
            }
            catch (Exception ex)
            {
                response.Success = false;
                response.Message = ex.Message;
            }
            return(response);
        }