public async Task <IHttpActionResult> GetOne(int id) { var model = await _nationalityRepository.GetSingleAsync(id); if (model != null) { var viewModel = Mapper.Map <Nationality, NationalityViewModel>(model); return(Ok(viewModel)); } return(NotFound()); }