Ejemplo n.º 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);
    }
    public void InsertEvents()
    {
        const int lcid = 1;
        int nextEventID = GetNextEventID();
        var context = new SidejobModel.SidejobEntities();
        context.InsertEvent(nextEventID, DateTime.Now.Date, lcid);

        var customerEvent = new SidejobModel.CustomerEvent
                                {
                                    CustomerID = _nextCustomerID,
                                    EventID = GetNextEventID(),
                                    NumberofEvents = 1,
                                    Type = 1
                                };

        context.AddToCustomerEvents(customerEvent);
    }