コード例 #1
0
 public IEnumerable <Professor> Put(Guid id, [FromBody] Professor professor)
 {
     if (id.Equals(professor.Id))
     {
         repo.Alterar(professor);
     }
     return(repo.SelecionarTudo());
 }
コード例 #2
0
 public IEnumerable <Professor> Put([FromBody] Professor prof)
 {
     repo.Alterar(prof);
     return(repo.SelecionarTudo());
 }