public Result(Exception exception, ILogerServices loger) { _loger = loger; Exception = exception; Message = exception.Message; if (Exception != null) { _loger.SystemLog(Exception); } }
public Result(T data, string message, Exception exception, ILogerServices loger) { _loger = loger; Data = data; Message = message; Exception = exception; if (Exception != null) { _loger.SystemLog(Exception); } }