Exemplo n.º 1
0
        // GET: Store/Details/5
        public ActionResult Details(int id)
        {
            SystemFail error = new SystemFail();
            Store      store = StoreBLL.GetStoreById(id, error);

            return(View(store));
        }
Exemplo n.º 2
0
        // GET: Store/Edit/5
        public ActionResult Edit(int id)
        {
            SystemFail error   = new SystemFail();
            Store      article = StoreBLL.GetStoreById(id, error);

            if (article == null && error.Error)
            {
                TempData["StartUp"] = "$.notify('The Store with the specific ID wasn´t found','success')";
                return(RedirectToAction("Index"));
            }
            return(View(article));
        }