Пример #1
0
        public static Hour HourInsert(Hour hour)
        {
            hour = hour.Save();

            SourceRepository.SourceAdd(hour.HourId, SourceType.Hour, hour.Date.ToShortDateString());

            FeedRepository.FeedAdd(FeedAction.Created, hour);

            return(hour);
        }
Пример #2
0
        public static Hour HourUpdate(Hour hour)
        {
            if (!hour.IsDirty)
            {
                return(hour);
            }

            hour = hour.Save();

            SourceRepository.SourceUpdate(hour.HourId, SourceType.Hour, hour.Date.ToShortDateString());

            FeedRepository.FeedAdd(FeedAction.Edited, hour);

            return(hour);
        }
Пример #3
0
        public static Hour HourUpdate(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Updated", hour);

            return hour;
        }
Пример #4
0
        public static Hour HourInsert(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Created", hour);

            return hour;
        }