Esempio n. 1
0
        public ActionResult AdicionaBloqueioUnidadeLote([FromHeader] string ibge, [FromBody] BloqueioLoteViewModel model)
        {
            try
            {
                ibge = _config.GetConnectionString(Connection.GetConnection(ibge));
                _repository.AdicionaBloqueioUnidadeLote(ibge, (int)model.unidade, (int)model.lote);

                return(Ok());
            }
            catch (Exception ex)
            {
                var response = TrataErro.GetResponse(ex.Message, true);
                return(StatusCode((int)HttpStatusCode.InternalServerError, response));
            }
        }