public OtherViewModel OccasionalError(OtherInputModel inputModel) { var rand = new Random(); if (rand.Next(0, 100) < 10) { throw new Exception("Boom"); } return new OtherViewModel { HelloText = inputModel.HelloText }; }
public string OtherView(OtherInputModel inputModel) { return inputModel.HelloText; }