public void DeletarVeterinario(int idVeterinario) { using var ctx = new Context(); var veterinariaService = new VeterinarioService(); veterinariaService.DeletarVeterinario(ctx, idVeterinario); }
public void CriarCliente(Veterinario veterinario) { using var ctx = new Context(); var veterinarioService = new VeterinarioService(); veterinarioService.CriarVeterinario(ctx, veterinario); }
public void AtualizarVeterinario(int idVeterinario) { using var ctx = new Context(); var veterinarioService = new VeterinarioService(); veterinarioService.AtualiarVeterinario(ctx, idVeterinario); }
public List <Veterinario> Index() { using var ctx = new Context(); var veterinarioService = new VeterinarioService(); var lista = veterinarioService.BuscarVeterinario(ctx); return(lista); }
public VeterinariosController(VeterinarioService veterinarioService, ListConsultaService listConsultaService, ListVeterinarioService listVeterinarioService) { _veterinarioService = veterinarioService; _ListVeterinarioService = listVeterinarioService; }