SHARE
TWEET

Untitled

a guest Jun 26th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public int Id { get; set; }
  2. public Anamnese Anamnese { get; set; }
  3.      
  4. public int Id { get; set; }
  5.      
  6. public static void CadastrarAnamnese(Cliente clienteEntrada, Anamnese anamnese) {
  7.         try
  8.         {
  9.             using (ConsultorioContext ctx = new ConsultorioContext())
  10.             {
  11.                 Cliente cliente = ctx.Clientes.Find(clienteEntrada.Id);
  12.                 cliente.Anamnese = anamnese;
  13.                 ctx.SaveChanges();
  14.             }
  15.         }
  16.         catch
  17.         {
  18.  
  19.         }
  20.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top