public ActionResult Create(Cinema res)
        {
            try
            {
                // TODO: Add insert logic here

                cinemas.InsertPlace(res);
                return RedirectToAction("Index");
            }
            catch
            {
                return View();
            }
        }
Beispiel #2
0
 public Cinema(Cinema c)
     : this(c.CoordinatesPlace, c.Name, c.Likes, c.seatingCapacity, c.additionalInformation, c.Rating, c.Description, c.WorkingTime)
 {
 }
 public ActionResult EditConfirmed(Cinema res)
 {
     try
     {
         // TODO: Add update logic here
         cinemas.UpdatePlace(res);
         return RedirectToAction("Index");
     }
     catch
     {
         return View();
     }
 }
Beispiel #4
0
 public Cinema(Cinema c)
     : this(c.CoordinatesPlace, c.Name, c.Likes, c.seatingCapacity, c.additionalInformation, c.Rating, c.Description, c.WorkingTime)
 {
 }