Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public static Hour HourUpdate(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Updated", hour);

            return hour;
        }
Exemplo n.º 4
0
        public static Hour HourInsert(Hour hour)
        {
            hour = hour.Save();

            FeedService.FeedAdd("Created", hour);

            return hour;
        }