public IEnumerable <Professor> Put(Guid id, [FromBody] Professor professor) { if (id.Equals(professor.Id)) { repo.Alterar(professor); } return(repo.SelecionarTudo()); }
public IEnumerable <Professor> Put([FromBody] Professor prof) { repo.Alterar(prof); return(repo.SelecionarTudo()); }