public ActionResult Register(kartoteka2 kartoteka) { if (!ModelState.IsValid) { return(Register(kartoteka)); } else { if (_iplayer.searchPlayer(kartoteka)) { return(RedirectToAction("info1", new { messageWindow = "Taki zawodnik jest już zarejestrowany." })); } else { Session["kartoteka"] = kartoteka; return(RedirectToAction("VerificationNumber", "VerificationEmail", new { visibleTrue = false })); } } }
public bool AddNewParticipant(string name, string sname, string email, int dys_id) { if (validateFormatEmail(email)) { var result = inewRecord.createNewRecord(name, sname, email, "", null, "", "", dys_id, 1); if (!iparticipant.searchPlayer(result)) { return(iaddParticipant.addParticipantWithoutTimeRegistrationVerification(result)); } else { this.errorInformation = "Zawodnik istnieje"; return(false); } } else { return(false); } }