Exemple #1
0
    public void InsertEvents(int applicantId, int applicationlcid, string applicationType)
    {
        var context = new SidejobEntities();
        int nextEventID = GetNextEventID();
        context.InsertEvent(nextEventID, DateTime.Now.Date, applicationlcid);
        var generalEvent = new Event
        {
            EventID = GetNextEventID(),
            ApplicantType = applicationType,
            ApplicantID = applicantId,
            EventDescription = Phasetitle,
            DateEvent = DateTime.Now.Date,
            LCID = ProjectLCID
        };

        context.AddToEvents(generalEvent);
    }