private async Task LoadAllUnitsAsync() { try { var units = await _unitDataAccess.GetAllUnitsAsync(); var mappedUnits = _mapper.Map <List <UnitModel> >(units); UnitList.AddRange(mappedUnits); } catch (Exception ex) { PushingMessages?.Invoke(this, ex.Message); PushingLogs?.Invoke(this, $"{ex.Message}\n{ex.StackTrace}"); } }