Skip to content

Commit 486f5e9

Browse files
feat: adição do arquivo MedicoRepository.cs
1 parent cab570b commit 486f5e9

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
using BlazorComponent.Models;
2+
3+
namespace BlazorComponent.Repositories
4+
{
5+
public class MedicoRepository : IMedicoRepository
6+
{
7+
public async Task<List<Medico>> GetAllAsync()
8+
{
9+
return new List<Medico>
10+
{
11+
new Medico{ Id = 1, Nome = "Pedro Silva", Crm = "ABC123" },
12+
new Medico{ Id = 2, Nome = "Antonio Garcia", Crm = "DEF123" },
13+
new Medico{ Id = 3, Nome = "Mateus Costa", Crm = "GHI123" },
14+
new Medico{ Id = 4, Nome = "Alberto Roberto", Crm = "JKL123" },
15+
new Medico{ Id = 5, Nome = "Pedro Menezes", Crm = "MNO123" },
16+
};
17+
}
18+
}
19+
}

0 commit comments

Comments
 (0)