//
 async Task DeleteOrOpen(string action, Varsel varsel)
 {
     if (action == "Slett varsel")
     {
         DeleteNotification(varsel);
     }
     else if (action == "Se annonse")
     {
         OpenAdvert(varsel);
     }
 }
 private void DeleteNotification(Varsel varsel)
 {
     varsler.Remove(varsel);
     DbNotification dbNotification = new DbNotification();
     if (varsel.Type == "job")
     {
         dbNotification.DeleteNotificationBasedOnJob(varsel.Uuid);
     }
     else
     {
         dbNotification.DeleteNotificationBasedOnProject(varsel.Uuid);
     }
 }
 private async void OpenAdvert(Varsel varsel)
 {
     var url = varsel.Webpage;
     var type = varsel.Type;
     var WebPage = new WebPage(type, url);
     await Navigation.PushAsync(WebPage);  //opens new webpage in browser to given url
 }