public async Task <ActionResult <List <UserViewModel> > > All() { try { List <UserDto> users = await _userLogic.All(); return(_mapper.Map <List <UserViewModel> >(users)); } catch (Exception e) { _logLogic.Log(e); return(StatusCode(StatusCodes.Status500InternalServerError)); } }
public void AllTest() { Assert.DoesNotThrowAsync(() => _userLogic.All()); }