public async Task <Entities.Exception> LogToDb(ExceptionViewModel exception) { var error = _mapper.Map <Entities.Exception>(exception); return(await _logger.AddAsync(error)); }