public string GetNextStepFor(EnterMobileInputModel inputModel)
 {
     var suffix = "Step";
     return _mobileService.IsRegistered(inputModel.MobilePhoneNumber)
                ? typeof(EnterLoginStep).GetKey(suffix)
                : typeof(EnterGuestLoginStep).GetKey(suffix);
 }
 public void Proceed(EnterMobileInputModel inputModel)
 {
     InputModel = inputModel;
     var nextStepKey = _model.GetNextStepFor(inputModel);
     var command = Factory.CreateNextStepCommandFrom(nextStepKey);
     OnComplete(command);
 }
 public ActionResult EnterMobile(EnterMobileInputModel inputModel, EnterMobileStep step)
 {
     step.Proceed(inputModel);
     return null;
 }