//GET /User/DeleteGenre/ public ActionResult DeleteGenre(string name) { //Samo admin brise zanr if (Session["user"] == null || ((ViewUser)Session["user"]).admin == false) { return(Redirect("/")); } if (name == null || name == "") { return(Redirect("/User/")); } Neo4jDataProvider dbNeo4j = new Neo4jDataProvider(); List <string> check = dbNeo4j.GenreRead(); if (!check.Contains(name)) { return(Redirect("/User/#deleteGenreModal")); } else { dbNeo4j.GenreDelete(name); return(Redirect("/User/")); } }