public ActionResult CadastrarAlteracaoSalarial([FromBody] AddAlteracaoSalarialModel model)
        {
            try
            {
                AlteracaoSalarial alteracaoSalarial = model;

                this.empresaService.Cadastrar(alteracaoSalarial);

                return(Ok());
            }
            catch (Exception)
            {
                MessageModel message = new MessageModel(1, Mensagens.ErroGenerico);
                return(BadRequest(message));
            }
        }
 public void Insert(AlteracaoSalarial alteracaoSalarial)
 {
     conexao.AlteracaoSalarial.Add(alteracaoSalarial);
 }
Esempio n. 3
0
 public void Cadastrar(AlteracaoSalarial alteracaoSalarial)
 {
     this.empresaContext.Insert(alteracaoSalarial);
     this.empresaContext.SaveChanges();
 }