/// <summary> /// Constructor /// </summary> /// <param name="dbSeedService">IDbSeedService implementation that seeds into database</param> /// <param name="database">IDatabase implementation, for operations with database</param> /// <param name="prodService">IProductService implementation, for seeding DB with real product data.</param> /// <param name="logger">NLog logger</param> public DbService(IDiagnosticRepository diagRepo, IDatabase database, IProductService prodService, ILogger logger) { _diagRepo = diagRepo; _database = database; _prodService = prodService; _logger = logger; }
public Diagnostic Post(DiagnosticDTO value) { Diagnostic model = new Diagnostic() { PacientId = value.PacientId, DoctorId = value.DoctorId }; return(IDiagnosticRepository.Create(model)); }
public Diagnostic Put(int id, DiagnosticDTO value) { Diagnostic model = IDiagnosticRepository.Get(id); if (value.PacientId != 0) { model.PacientId = value.PacientId; } if (value.DoctorId != 0) { model.DoctorId = value.DoctorId; } return(IDiagnosticRepository.Update(model)); }
public SimpleCalculatorService(IDiagnosticRepository diagnosticRepository) { _diagnosticRepository = diagnosticRepository; }
public Diagnostic Delete(int id) { Diagnostic model = IDiagnosticRepository.Get(id); return(IDiagnosticRepository.Delete(model)); }
public ActionResult <Diagnostic> Get(int id) { return(IDiagnosticRepository.Get(id)); }
public ActionResult <IEnumerable <Diagnostic> > Get() { return(IDiagnosticRepository.GetAll()); }
public DiagnosticController(IDiagnosticRepository diagnosticRepository, IPacientRepository pacientRepository, IDoctorRepository doctorRepository) { IDiagnosticRepository = diagnosticRepository; IPacientRepository = pacientRepository; IDoctorRepository = doctorRepository; }
public diagnosticController(IDiagnosticRepository _diagnosticRepository) { diagnosticService = new DiagnosticService(_diagnosticRepository); }
public DiagnosticsService(IDiagnosticRepository _diagnosticRepository) { this._diagnosticRepository = _diagnosticRepository; }