Esempio n. 1
0
        public async Task <ResponseBaseViewModel <UpdateCustomerPwdResponseViewModel> > UpdateMojoryCustomerPwd(
            [FromBody] UpdateCustomerPwdRequestViewModel request)
        {
            request.Cid = this.GetCid();
            bool flag = false;

            await new TaskFactory().StartNew(() =>
            {
                flag = _updateCustomerPwdApplication.UpdateMojoryCustomerPwd(request);
            });

            ResponseBaseViewModel <UpdateCustomerPwdResponseViewModel> v = new ResponseBaseViewModel
                                                                           <UpdateCustomerPwdResponseViewModel>
            {
                Flag = new ResponseCodeViewModel()
                {
                    Code = 0, MojoryToken = this.GetToken()
                },
                Data = new UpdateCustomerPwdResponseViewModel()
                {
                    IsSuccessed = flag
                }
            };

            return(v);
        }
 public bool UpdateMojoryCustomerPwd(UpdateCustomerPwdRequestViewModel request)
 {
     return(_updateCustomerPwdServiceBll.UpdateCustomerPwd(new UpdateCustomerPwdModel()
     {
         Cid = request.Cid,
         AfterUpdatePwd = request.AfterUpdatePwd,
         OriginalPwd = request.OriginalPwd
     }));
 }