public IHttpActionResult CadastrarRestricao([FromBody] RestricaoTO restricao) { BaseResponse response = new BaseResponse(); try { Local.CadastrarRestricao(restricao.IdLocal, restricao.IdCategoria); } catch (EntidadesException eex) { response.Status = (int)eex.Codigo; response.Detalhes = eex.Message; } catch (Exception ex) { response.Status = -1; response.Detalhes = ex.Message; } return(Ok(response)); }