コード例 #1
0
 public void InitHistories()
 {
     Applicant = new ApplicantWeb.Models.Applicant();
     HistoryFields = new HistoryFields(new DateTime(2015, 09, 15), ApplicantClassLibrary.TypeHistory.Interview, "Здорово!!!");
     HistoryCreate = new HistoryCreate(HistoryFields, Applicant.ApplicantId, Applicant);
     History = new History(HistoryCreate);
     HistoryEdit = new HistoryEdit(HistoryFields);
 }
コード例 #2
0
 public ActionResult Create(HistoryCreate historyCreate)
 {
     if (Request.IsAuthenticated)
     {
         try
         {
             if (ModelState.IsValid)
             {
                 db.Histories.Add(new History(historyCreate));
                 db.SaveChanges();
                 return PartialView("PartialList", db.Applicants.Find(historyCreate.ApplicantId));
             }
             return View(historyCreate);
         }
         catch
         {
             return HttpNotFound();
         }
     }
     else
     {
         return Redirect(Url.Action("Login", "Account"));
     }
 }
コード例 #3
0
 public History(HistoryCreate historyCreate)
     : base(historyCreate,historyCreate.ApplicantId,historyCreate.Applicant)
 {
 }
コード例 #4
0
 public History(HistoryCreate historyCreate)
     : base(historyCreate, historyCreate.ApplicantId, historyCreate.Applicant)
 {
 }