Example #1
0
        public async Task <IHttpActionResult> DeleteDeliveryType(string id)
        {
            DeliveryType deliveryType = _SVC.GetDeliveryType(id);

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

            await _SVC.DeleteDeliveryType(deliveryType);

            return(Ok(deliveryType));
        }
Example #2
0
 async public Task <ActionResult> Delete(string xID)
 {
     return(Content(await _Server.DeleteDeliveryType(_Server.GetDeliveryType(xID))));
 }