예제 #1
0
        public void Eliminar(PrecioRequest request)
        {
            try
            {
                var bc = new PrecioComponent();

                bc.Remove(request.Precio);
            }
            catch (Exception ex)
            {
                var httpError = new HttpResponseMessage()
                {
                    StatusCode   = (HttpStatusCode)422,
                    ReasonPhrase = ex.Message
                };
                throw new HttpResponseException(httpError);
            }
        }
예제 #2
0
        public void Remove(Precio precio)
        {
            var bc = new PrecioComponent();

            bc.Remove(precio);
        }