示例#1
0
        public ActionResult Delete(int id, FormCollection collection)
        {
            try
            {
                OperationService op = new OperationService();
                if (!op.DeleteTransaction(id))
                {
                    throw new Exception();
                }

                return(RedirectToAction("Index"));
            }
            catch
            {
                return(View());
            }
        }