コード例 #1
0
 public ActionResult ConfirmBid(Candidate candidate, string message)
 {
     var form = new CandidateForm {Candidate = candidate, Message = message};
     return View(form);
 }
コード例 #2
0
 /// <summary>
 /// Сохранить заявку.
 /// </summary>
 /// <param name="candidate">Кандидат.</param>
 public void SaveBid(Candidate candidate)
 {
     candidate.Role = DefaultCandidateRole;
     Get<ICandidateRepository>().Save(candidate);
     Logger.Info(String.Format("Добавлена заявка на регистрацию - {0}.", candidate.Login));
 }