예제 #1
0
        public HttpResponseMessage AlterarValorDeCusto([FromBody] EstoqueContabil obj)
        {
            var context = new CentralContext();

            _repository    = new EstoqueContabilRepository(context);
            _repositoryLog = new LogAlteracaoCustoRepository(context);
            _service       = new EstoqueContabilService(_repository, _repositoryLog);


            try
            {
                _service.AlterarValorDeCusto(obj);
            }
            catch (Exception ex)
            {
                return(Request.CreateResponse <dynamic>(HttpStatusCode.InternalServerError, new { Error = ex.Message }));
            }

            return(Request.CreateResponse(HttpStatusCode.OK));
        }
예제 #2
0
 public void AlterarValorDeCusto(EstoqueContabil obj)
 {
     _service.AlterarValorDeCusto(obj);
 }