public IActionResult Delete(int id)
 {
     if (HttpContext.Session.Get("Username") != null)
     {
         userID = Convert.ToInt32(HttpContext.Session.GetInt32("UserID"));
         try
         {
             collectionRepository.DeleteItem(id, userID);
             return(RedirectToAction("Index"));
         }
         catch (Exception e)
         {
             string message = e.Message;
             return(View("Error", "Database"));
         }
     }
     return(RedirectToAction("Login", "User"));
 }