예제 #1
0
        public async Task <IActionResult> CloseShipment([FromRoute] string id)
        {
            if (string.IsNullOrEmpty(id))
            {
                return(BadRequest());
            }
            var objDB = shipService.ShipmentExistById(id, _context);

            if (objDB == null)
            {
                throw new Exception(Contants.NOTFOUND);
            }
            await shipService.Close(objDB, _context);

            return(Ok());
        }