public void Delete(int id) { userStorage.Delete(id); SendNotificationToAllSlaves(new Message() { Type = Command.DeleteById, User = new User { Id = id } }); }
public void Delete(UserBindingModel model) { var user = _userStorage.GetElement(new UserBindingModel { Id = model.Id }); if (user == null) { throw new Exception("Никнейм не найден"); } _userStorage.Delete(model); }
public void Delete(UserBindingModel model) { var element = _userStorage.GetElement(new UserBindingModel { Id = model.Id }); if (element == null) { throw new Exception("Клиент не найден"); } _userStorage.Delete(model); }
public void Delete(UserBindingModel model) { var user = userStorage.GetElement( new UserBindingModel { Id = model.Id }); if (user == null) { throw new Exception("Пользователь не найден"); } userStorage.Delete(model); }
private void Delete(int id) { userStorage.Delete(id); }
public async Task Delete([FromRoute] Guid userId) { await _userStorage.Delete(userId); }