New problem arose I moved the coroutine caller to a repository. From the ViewModel I pass the coroutine method the ssn of the current member, but I get a compile error on the line in red, the Coroutine.Start call. How can I pass a parameter to the coroutine iterator method?
//Coroutine caller
public void CreateJobHistory(string ssn)
{
var coop = Coroutine.Start(CreateNewJobHistory(ssn));
coop.Completed += (sender, args) =>
{
if (args.CompletedSuccessfully)
{
JobHistory newJob = coop.Result as JobHistory;
}
else
{
}
};
}