private Database.LinqToSql.ErrorLog ConvertErrorLog(Logic.Notifications_And_Logs.ErrorLog error) { var toReturn = new Database.LinqToSql.ErrorLog(); var log = new Database.LinqToSql.Log(); log.LogId = error.LogId; log.LogPriority = GetPriorityNum(error.Priority); toReturn.Log = log; toReturn.msg = error.Msg; toReturn.logId = error.LogId; return(toReturn); }
private Database.LinqToSql.SystemLog ConvertSysLog(Logic.Notifications_And_Logs.SystemLog sysLog) { Database.LinqToSql.SystemLog toReturn = new Database.LinqToSql.SystemLog(); var log = new Database.LinqToSql.Log(); log.LogId = sysLog.LogId; log.LogPriority = GetPriorityNum(sysLog.Priority); toReturn.Log = log; toReturn.msg = sysLog.Msg; toReturn.logId = sysLog.LogId; toReturn.game_Id = sysLog.GameId; toReturn.roomId = sysLog.RoomId; return(toReturn); }