Beispiel #1
0
        public async Task <IHttpActionResult> Delete(int id)
        {
            var cliente = await _serviceBase.GetByIdAsync(id);

            await _serviceBase.DeleteAsync(cliente, id);

            return(Ok());
        }
Beispiel #2
0
        public async Task <IHttpActionResult> DeleteAsync(int id)
        {
            var retPok = await _IPedidoItemAppService.GetByIdAsync(id);

            if (retPok == null)
            {
                return(NotFound());
            }
            else
            {
                await _IPedidoItemAppService.DeleteAsync(retPok, id);

                return(Ok());
            }
        }