コード例 #1
0
 public ActionResult AddRentalClient(Rezerwacja res)
 {
     res.Klient = int.Parse(Session["ID"].ToString());
     Pracownik.DodajRezerwacje(res);
     this.GetLog().Info("Reservation no." + res.id + " has been added");
     return(RedirectToAction("ShowRental"));
 }
コード例 #2
0
 public ActionResult AddRental(Rezerwacja res)
 {
     Pracownik.DodajRezerwacje(res);
     this.GetLog().Info("Reservation no." + res.id + " has been added");
     return(Redirect(Request.UrlReferrer.ToString()));
 }
コード例 #3
0
 public ActionResult AddRental(Rezerwacja res)
 {
     Pracownik.DodajRezerwacje(res);
     this.GetLog().Info("Reservation no." + res.id + " has been added");
     return(RedirectToAction("ShowRental"));
 }