コード例 #1
0
        /// <summary>
        /// Sends news object to data layer to delete from DB
        /// </summary>
        /// <param name="id">Id of news to delete from the DB</param>
        public void RemoveBroker(int id)
        {
            BrokerInfo broker = _brokerRepo.GetById(id);

            if (BrokerExistsById(broker))
            {
                _brokerRepo.DeleteBrokerInfo(broker);
            }
        }