public AddCorpAduitCustomerRelationResponseViewModel AddCorpAduitCustomerRelation( AddCorpAduitCustomerRelationRequestViewModel request) { bool flag = _addCorpAduitCustomerRelationServiceBll.AddCorpAduitCustomerRelation(new CorpAduitConfigCustomerModel() { CidList = request.CidList, AduitId = request.AduitId }); return(new AddCorpAduitCustomerRelationResponseViewModel() { IsSuccessed = flag }); }
public async Task <ResponseBaseViewModel <AddCorpAduitCustomerRelationResponseViewModel> > AddAduitCustomerRelation( [FromBody] AddCorpAduitCustomerRelationRequestViewModel request) { request.Cid = this.GetCid(); AddCorpAduitCustomerRelationResponseViewModel viewModel = new AddCorpAduitCustomerRelationResponseViewModel(); await new TaskFactory().StartNew(() => { viewModel = _addCorpAduitCustomerRelationApplication.AddCorpAduitCustomerRelation(request); }); ResponseBaseViewModel <AddCorpAduitCustomerRelationResponseViewModel> v = new ResponseBaseViewModel <AddCorpAduitCustomerRelationResponseViewModel> { Flag = new ResponseCodeViewModel() { Code = 0, MojoryToken = this.GetToken() }, Data = viewModel }; return(v); }