Exemplo n.º 1
0
        public ActionResult Create(Cinema res)
        {
            try
            {
                // TODO: Add insert logic here

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