public ActionResult Detalji(Aranzman aranzman) { if (aranzman.Equals(default(Aranzman))) { return(HttpNotFound()); } return(View(aranzman)); }
public ActionResult Rezervisi(Aranzman aranzman) { if (aranzman.Equals(default(Aranzman))) { return(HttpNotFound()); } string korisnikID = User.Identity.GetUserId(); bool rezervisao = Broker.Instanca.ProveriIRezervisi(korisnikID, aranzman); if (rezervisao) { return(View("~/Views/Aranzmani/UspesnoRezervisano.cshtml")); } return(View("~/Views/Aranzmani/NeuspesnoRezervisano.cshtml")); }