Пример #1
0
        public ActionResult FaDbDelete(fa _objItems)
        {
            var dbPage = _objItems.dbProgId;

            var faDbDelete = _faRepository.Delete(_objItems);

            string msg = "#DatabaseDeleted";

            return Redirect("/fa/faedit/" + dbPage + msg);
        }
Пример #2
0
        public ActionResult AddDb(fa _objItems)
        {
            int dbPage = _objItems.HighId;

            var addDb = _faRepository.Add(_objItems);

            if ((bool)addDb == true)
            {
                return Redirect("/fa/faedit/" + dbPage + "#DbAdded");
            }
               return Content("Database reference on this page already exists!");
        }