Esempio n. 1
0
        public ActionResult DeleteMemberShip(MemberShip m)
        {
            CommonDal _da = null;

            try
            {
                _da             = new CommonDal();
                ViewBag.Message = _da.DeleteMemberShip(m);
                return(RedirectToAction("GetMemberShip", "User", true));
            }
            catch (Exception ex)
            {
                _da.ExceptionDtls(ex.Message, ex.GetType().ToString(), ex.StackTrace);
                return(RedirectToAction("Error", "Home"));
            }
            finally
            {
                _da = null;
            }
        }