Exemplo n.º 1
0
        public void Create(CreateReminderModel model)
        {
            var item = new ReminderItem(
                Guid.NewGuid(),
                model.ContactId,
                model.Message,
                model.MessageDate);

            _storage.Create(item);
        }
        public void Create(CreateReminderModel model)
        {
            if (model == null)
            {
                throw new ArgumentNullException("Пустой аргумент", nameof(model));
            }
            var item = new ReminderItem(
                Guid.NewGuid(),
                model.ContactId,
                model.Message,
                model.Datetime);

            _storage.Create(item);
        }