コード例 #1
0
        public BorrarEspecieResponse Borrar(BorrarEspecieRequest request)
        {
            try
            {
                var response = new BorrarEspecieResponse();
                var bc       = new EspecieComponent();
                bc.Borrar(request.Especie);

                return(response);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message
                };

                throw new HttpResponseException(httpError);
            }
        }