コード例 #1
0
        public async Task <ActionResult> DeleteConfirmedAsync([Bind("Id")] string id)
        {
            await _itemService.DeleteDeliveryAsync(id);

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public async Task <IHttpActionResult> DeleteDelivery([FromUri] int deliveryId)
        {
            await _deliveryService.DeleteDeliveryAsync(deliveryId);

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