public ActionResult GasireCarte(CautareCartePost model) { var carte = (Carte)MagistralaComenzi.Executa("cauta", model.Titlu); var modelConvertit = new CarteMVC(carte.Id, carte.Titlu, carte.Autor, carte.Editura, carte.Termen, carte.DataImprumut, carte.Domeniu, carte.Locatie, carte.Stare); return(View(modelConvertit)); }
public ActionResult ImprumutaCarte(ImprumutaCartePost model) { MagistralaComenzi.Executa("imprumutare", model.Titlu); return(RedirectToAction("AfisareCartiUser")); }
public ActionResult RestituieCarte(RestituieCartePost model) { MagistralaComenzi.Executa("restituire", model.Titlu); return(RedirectToAction("AfisareCartiUser")); }
public ActionResult PrelungireCarte(PrelungireCartePost model) { MagistralaComenzi.Executa("prelungire", model.Titlu); return(RedirectToAction("AfisareCartiUser")); }