Exemplo n.º 1
0
 public Response GetMemberDetail(int MemberId)
 {
     _response = new Response();
     try
     {
         MemberBusiness memberService = new MemberBusiness();
         _response.responseData = memberService.GetMemberDetail(MemberId);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         memberService = null;
     }
     return(_response);
 }
Exemplo n.º 2
0
 public Response GetApplicationMemberList(MemberCustomModel objMemberModel)
 {
     _response = new Response();
     try
     {
         MemberBusiness memberService = new MemberBusiness();
         _response.responseData = memberService.GetApplicationMemberList(objMemberModel);
         _response.message      = "Records loaded successfully !!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         memberService = null;
     }
     return(_response);
 }
Exemplo n.º 3
0
 public Response ForgotPassword(ForgotPasswordCustomModel model)
 {
     _response = new Response();
     try
     {
         MemberBusiness memberService = new MemberBusiness();
         _response.responseData = memberService.ForgotPassword(model);
         _response.message      = "Mail Sent Successfully!!";
         _response.success      = true;
     }
     catch (Exception ex)
     {
         _response.success = false;
         _response.message = ex.Message.ToString();
     }
     finally
     {
         memberService = null;
     }
     return(_response);
 }
        public override void OnActionExecuting(SWM.ActionExecutingContext filterContext)
        {
            if (HttpContext.Current.Session[SessionKeys.MemberInfo] == null)
            {
                IMemberBusiness memberBusiness = (IMemberBusiness)SWM.DependencyResolver.Current.GetService(typeof(IMemberBusiness));

                var httpCookie = HttpContext.Current.Request.Cookies[SessionKeys.CookiePrefix];

                if (httpCookie != null && httpCookie.Values[SessionKeys.Cookie_MemberId] != null)
                {
                    string        value = httpCookie.Values[SessionKeys.Cookie_MemberId];
                    CrpytorEngine crp   = new CrpytorEngine()
                    {
                        SecurityKey = SessionKeys.Cookie_MemberId
                    };

                    var memberId = int.Parse(crp.Decrypt(value, true));

                    var resultSet = memberBusiness.GetMemberByMemberId(memberId);
                    if (resultSet.Success)
                    {
                        HttpContext.Current.Session[SessionKeys.MemberInfo] = new SessionUser()
                        {
                            Id       = resultSet.Object.Id,
                            NickName = resultSet.Object.NickName,
                            Name     = resultSet.Object.Name,
                            SurName  = resultSet.Object.Surname
                        };
                    }
                }
            }
            if (HttpContext.Current.Session[SessionKeys.MemberInfo] == null)
            {
                filterContext.Result = new SWM.RedirectResult(string.Format("/{0}/{1}",
                                                                            RouteKeys.MemberController, "Index"), false);
            }
            base.OnActionExecuting(filterContext);
        }
Exemplo n.º 5
0
 public TourController(ITourBusiness tourBusiness, IStepBusiness stepBusiness, IOrderBusiness orderBusiness, IMemberBusiness memberBusiness, IPromotionBusiness promotionBusiness, IOrderDetailBusiness orderDetailBusiness)
 {
     this._tourBusiness        = tourBusiness;
     this._stepBusiness        = stepBusiness;
     this._orderBusiness       = orderBusiness;
     this._memberBusiness      = memberBusiness;
     this._promotionBusiness   = promotionBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
 }
Exemplo n.º 6
0
 public MemberController(IMemberBusiness memberBusiness, IMemberLevelBusiness memberLevelBusiness)
 {
     this._memberBusiness = memberBusiness;
     this._memberLevel    = memberLevelBusiness;
 }
Exemplo n.º 7
0
 public MemberController(IMemberBusiness memberBusiness, IOrderBusiness orderBusiness)
 {
     this._memberBusiness = memberBusiness;
     this._orderBusiness  = orderBusiness;
 }
Exemplo n.º 8
0
 public MemberAPIController(MemberBusiness _MemberService)
 {
     this.MemberService = _MemberService;
 }
Exemplo n.º 9
0
 /// <summary>
 /// 会员
 /// </summary>
 public MemberController(IMemberCached menberCached, IMemberBusiness memberBusiness)
 {
     this.memberCached   = menberCached;
     this.memberBusiness = memberBusiness;
 }
 public MembersController(IMemberBusiness memberBusiness)
 {
     _memberBusiness = memberBusiness;
 }
 public MembersController(IMemberBusiness memberBusiness)
 {
     _memberBusiness = memberBusiness;
 }
Exemplo n.º 12
0
 public MemberController(IMemberBusiness memberBusiness, IMemberReceiptInfoBusiness memberReceiptInfo, IOrderBusiness orderBusiness)
 {
     this._memberBusiness    = memberBusiness;
     this._memberReceiptInfo = memberReceiptInfo;
     this._orderBusiness     = orderBusiness;
 }
 public SocialController(IMemberBusiness memberBusiness)
 {
     _memberBusiness = memberBusiness;
 }
Exemplo n.º 14
0
 public ProductController(IProductBusiness productBusiness, IStaffBusiness staffBusiness, IMemberReceiptInfoBusiness memberReceiptInfo, IOrderBusiness orderBusiness, IOrderDetailBusiness orderDetailBusiness, IMemberBusiness memberBusiness)
 {
     this._productBusiness     = productBusiness;
     this._staffBusiness       = staffBusiness;
     this._memberReceiptInfo   = memberReceiptInfo;
     this._orderBusiness       = orderBusiness;
     this._orderDetailBusiness = orderDetailBusiness;
     this._memberBusiness      = memberBusiness;
 }