Beispiel #1
0
        public IHttpActionResult DeleteShipment(int id)
        {
            Shipment shipment = _shipmentRepository.GetById(id);

            if (shipment == null)
            {
                return(NotFound());
            }

            _shipmentRepository.Delete(shipment);
            _unitOfWork.Commit();

            return(Ok(Mapper.Map <ShipmentsModel>(shipment)));
        }
Beispiel #2
0
 public Shipment Delete(int Id)
 {
     return(ShipmentRepo.Delete(Id));
 }