Exemplo n.º 1
0
        /// <summary>
        /// 删除物流
        /// </summary>
        /// <param name="id"></param>
        public virtual async Task DeleteAsync(int id)
        {
            var logistics = await ShipmentRepository.FirstOrDefaultAsync(id);

            if (logistics != null)
            {
                await ShipmentRepository.DeleteAsync(logistics);
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// 删除物流
 /// </summary>
 /// <param name="logistics"></param>
 public virtual async Task DeleteAsync(Shipment logistics)
 {
     await ShipmentRepository.DeleteAsync(logistics);
 }