public async Task <ActionResult> DeleteConfirmedAsync([Bind("Id")] string id)
        {
            await _itemService.DeleteDeliveryAsync(id);

            return(RedirectToAction("Index"));
        }
Ejemplo n.º 2
0
        public async Task <IHttpActionResult> DeleteDelivery([FromUri] int deliveryId)
        {
            await _deliveryService.DeleteDeliveryAsync(deliveryId);

            return(ResponseMessage(Request.CreateResponse(HttpStatusCode.NoContent)));
        }