/// <summary>
 ///     Logs an error in log for the application.
 /// </summary>
 /// <returns>
 ///     The id the error can be retrieved by
 /// </returns>
 public override string Log(Error error)
 {
     // todo: proper async support
     return _errorRepository.AddErrorAsync(error.ToErrorRecord()).Result;
 }