public void Should_Get_Participant_comform_AVG() { //ARRANGE //ACT ParticipantVM result = _c.GetParticipant("Test", "*****@*****.**"); //ASSERT Assert.Null(result.Email); }
public async Task <IActionResult> Join(ParticipantVM model) { if (ModelState.IsValid) { Participant participant = model.ToParticipant(); _context.Add(participant); await _context.SaveChangesAsync(); return(RedirectToAction(nameof(Detail), new { id = model.RollId })); } return(RedirectToAction(nameof(Detail), new { id = model.RollId })); }