Пример #1
0
        public void Delete(int id)
        {
            userStorage.Delete(id);

            SendNotificationToAllSlaves(new Message()
            {
                Type = Command.DeleteById,
                User = new User {
                    Id = id
                }
            });
        }
Пример #2
0
        public void Delete(UserBindingModel model)
        {
            var user = _userStorage.GetElement(new UserBindingModel
            {
                Id = model.Id
            });

            if (user == null)
            {
                throw new Exception("Никнейм не найден");
            }
            _userStorage.Delete(model);
        }
Пример #3
0
        public void Delete(UserBindingModel model)
        {
            var element = _userStorage.GetElement(new UserBindingModel
            {
                Id = model.Id
            });

            if (element == null)
            {
                throw new Exception("Клиент не найден");
            }
            _userStorage.Delete(model);
        }
Пример #4
0
        public void Delete(UserBindingModel model)
        {
            var user = userStorage.GetElement(
                new UserBindingModel
            {
                Id = model.Id
            });

            if (user == null)
            {
                throw new Exception("Пользователь не найден");
            }

            userStorage.Delete(model);
        }
Пример #5
0
 private void Delete(int id)
 {
     userStorage.Delete(id);
 }
Пример #6
0
 public async Task Delete([FromRoute] Guid userId)
 {
     await _userStorage.Delete(userId);
 }