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