Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public int Id { get; set; }
- public Anamnese Anamnese { get; set; }
- public int Id { get; set; }
- public static void CadastrarAnamnese(Cliente clienteEntrada, Anamnese anamnese) {
- try
- {
- using (ConsultorioContext ctx = new ConsultorioContext())
- {
- Cliente cliente = ctx.Clientes.Find(clienteEntrada.Id);
- cliente.Anamnese = anamnese;
- ctx.SaveChanges();
- }
- }
- catch
- {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement