public static HourUpdate ( Hour hour ) : Hour | ||
hour | Hour | |
Результат | Hour |
public static Hour HourSave(Hour hour) { if (!hour.IsValid) { return(hour); } Hour result; if (hour.IsNew) { result = HourRepository.HourInsert(hour); } else { result = HourRepository.HourUpdate(hour); } StoryRepository.StoryUpdateDuration(hour.StoryId); return(result); }