public JsonResponse Breathe(AirInputModel model) { var result = model.TakeABreath ? new AirViewModel { Text = "Breathe in!" } : new AirViewModel { Text = "Exhale!" }; return new JsonResponse() { Model = result }; }
public JsonResponse Breathe(AirInputModel model) { var result = model.TakeABreath ? new AirViewModel { Text = "Breathe in!" } : new AirViewModel { Text = "Exhale!" }; return(new JsonResponse() { Model = result }); }