Beispiel #1
0
 public async Task DropPin(string id)
 {
     try
     {
         await MongoManager.RemovePinFromQuiz(id, "runningQuizzes");
     }
     catch (MongoException mex)
     {
         HttpContext.Session.SetString("error", mex.Message);
         RedirectToError();
     }
     catch (Exception ex)
     {
         HttpContext.Session.SetString("error", ex.Message);
         RedirectToError();
     }
 }