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);
 }
 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"));
     }
 }
 public History(HistoryCreate historyCreate)
     : base(historyCreate,historyCreate.ApplicantId,historyCreate.Applicant)
 {
 }
 public History(HistoryCreate historyCreate)
     : base(historyCreate, historyCreate.ApplicantId, historyCreate.Applicant)
 {
 }