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;
}