コード例 #1
0
        public int Put(Funcionario funcionario)
        {
            var target = GetByCPF(funcionario.Cpf);

            target.Nome   = funcionario.Nome;
            target.Status = funcionario.Status;

            _context.Update(target);
            Save();
            return(target.Id);
        }
コード例 #2
0
        public int Put(int id, Projeto projeto)
        {
            var target = Get(id);

            target.Nome    = projeto.Nome;
            target.Detalhe = projeto.Detalhe;
            target.Status  = projeto.Status;

            _context.Update(target);
            Save();
            return(target.Id);
        }