/// <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); } }
/// <summary> /// 删除物流 /// </summary> /// <param name="logistics"></param> public virtual async Task DeleteAsync(Shipment logistics) { await ShipmentRepository.DeleteAsync(logistics); }