internal static void LogException(Exception err)
 {
     try
     {
         var _db = new GPSGameDataModelContainer();
         _db.ExceptionLogs.Add(new ExceptionLog
         {
             ExceptionMessage = err.Message,
             ExceptionType = err.GetType().ToString(),
             TimeStamp = DateTime.Now,
             ExceptionStackTrace = err.StackTrace
         });
         _db.SaveChanges();
     }
     catch (Exception e)
     {
         
     }
     
 }
 private Repository()
 {
     db = new GPSGameDataModelContainer();
 }