Esempio n. 1
0
        ITAttendentDuty SetEndStamp(long nDuty)
        {
            TAttendentDuty tAD = _Sb.TAttendentDuties.FirstOrDefault(obj => obj.n == nDuty);

            tAD.dtampStop = DateTime.UtcNow;
            OTAttendentDuty otd = new OTAttendentDuty(tAD);

            if (true)
            {
                _Sb.SubmitChanges();
            }

            return(new OTAttendentDuty(tAD));
        }
Esempio n. 2
0
        //Istorage Service for bus ends here-->
        ITAttendentDuty IStorageService.AddDuty(long nBusFK, long nentityFK)
        {
            TAttendentDuty tD = new TAttendentDuty()
            {
                nBusFK      = nBusFK,
                nEntityFK   = nentityFK,
                dStampStart = DateTime.UtcNow,
                bStatus     = true
            };

            _Sb.TAttendentDuties.InsertOnSubmit(tD);
            if (true)
            {
                CommitToDB();
            }
            return(new OTAttendentDuty(tD));
        }