public void Update(OACustomerInputDto input) { var ret = _oaCustomerRepository.Get(input.Id.Value); ret = input.MapTo(ret); _oaCustomerRepository.Update(ret); }
public InitWorkFlowOutput Create(OACustomerInputDto input) { var model = input.MapTo <OACustomer>(); model.Status = 0; _oaCustomerRepository.InsertOrUpdate(model); return(new InitWorkFlowOutput() { InStanceId = model.Id.ToString() }); }