Beispiel #1
0
        public ActionResult Close(int id)
        {
            if (!base.VerifyIsAuthenticated())
            {
                return(base.RedirectHome());
            }
            Comanda comanda = comandaService.ShortShow(id);

            if (comanda == null)
            {
                return(HttpNotFound());
            }
            comandaService.Close(comanda);
            return(Json(new { Status = "OK" }));
        }