Пример #1
0
        public CalendarDay(DateTime date, DayStatus status)
        {
            if (status == null)
            {
                throw new ArgumentNullException(nameof(status));
            }

            this.Date   = date;
            this.Status = status;
        }
Пример #2
0
        public void Cancel(IDbContext context, CalendarDay day, DayStatus cancelStatus)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (day == null)
            {
                throw new ArgumentNullException(nameof(day));
            }
            if (cancelStatus == null)
            {
                throw new ArgumentNullException(nameof(cancelStatus));
            }

            var q = @"update calendar set status = @status where date = @date";

            var date   = day.Date;
            var status = cancelStatus.Id;

            throw new NotImplementedException();
        }