Beispiel #1
0
        public TimeSpend GetByID(int id)
        {
            var timeSpend = timeSpendDao.GetById(id);

            timeSpend.Task = taskDao.GetById(timeSpend.Task.ID);
            return(timeSpend);
        }
Beispiel #2
0
        public TimeSpend GetByID(int id)
        {
            var timeSpend = timeSpendDao.GetById(id);

            if (timeSpend != null)
            {
                timeSpend.Task = taskDao.GetById(timeSpend.Task.ID);
            }
            return(timeSpend);
        }