Ejemplo n.º 1
0
        public ActionResult GetMemberShip()
        {
            CommonDal _da          = null;
            string    memberShipId = Session["MemberShipId"].ToString();

            try
            {
                _da = new CommonDal();
                List <MemberShip> gliList = new List <MemberShip>();
                gliList = _da.GetMemberShip(memberShipId);
                if (gliList.Count > 0)
                {
                }
                else
                {
                    return(RedirectToAction("Error", "Home"));
                }

                return(View(gliList));
            }
            catch (Exception ex)
            {
                _da.ExceptionDtls(ex.Message, ex.GetType().ToString(), ex.StackTrace);
                return(RedirectToAction("Error", "Home"));
            }
            finally
            {
                _da = null;
            }
        }