Exemplo n.º 1
0
        // GET: Store/Delete/5
        public ActionResult Delete(int id)
        {
            SystemFail error = new SystemFail();

            StoreBLL.DeleteStore(id, error);
            if (!error.Error)
            {
                TempData["StartUpScript"] = "$.notify('" + error.Message + "','success');";
            }
            else
            {
                TempData["StartUpScript"] = "$.notify('" + error.Message + "','error');";
            }
            return(RedirectToAction("Index"));
        }