public UpdateCustomerHeadPictureResponseViewModel UpdateCustomerHeadPicture(UpdateCustomerHeadPictureRequestViewModel request)
        {
            bool flag = _updateCustomerServiceBll.UpdateCustomerHeadPicture(request.Cid, request.HeadPictureUri);

            return(new UpdateCustomerHeadPictureResponseViewModel()
            {
                IsSuccessed = flag
            });
        }
        public async Task <ResponseBaseViewModel <UpdateCustomerHeadPictureResponseViewModel> > UpdateCustomerHeadPicture(
            [FromBody] UpdateCustomerHeadPictureRequestViewModel request)
        {
            request.Cid = this.GetCid();
            UpdateCustomerHeadPictureResponseViewModel flag = new UpdateCustomerHeadPictureResponseViewModel();

            await new TaskFactory().StartNew(() =>
            {
                flag = _updateCustomerApplication.UpdateCustomerHeadPicture(request);
            });

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

            return(v);
        }