示例#1
0
        public IHttpActionResult DeleteEntrada(long id)
        {
            Entrada entrada;

            try
            {
                entrada = entradasService.Delete(id);
            }
            catch (Exception)
            {
                return NotFound();
            }
            return Ok(entrada);
        }
示例#2
0
        public IHttpActionResult DeleteEntrada(long id)
        {
            Entradas entrada;

            try
            {
                entrada = entradasService.Delete(id);
            }
            catch (NoEncontradoException)
            {
                return(NotFound());
            }

            return(Ok(entrada));
        }