예제 #1
0
        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));
            }
        }
예제 #2
0
 public void AllTest()
 {
     Assert.DoesNotThrowAsync(() => _userLogic.All());
 }