Beispiel #1
0
 public IActionResult Get()
 {
     try
     {
         return(Ok(_userRepository.GetAll().Select(x => _userMapper.MapToDto(x))));
     }
     catch (Exception exception)
     {
         //logg exception or do anything with it
         return(StatusCode((int)HttpStatusCode.InternalServerError));
     }
 }