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