Пример #1
0
 //Uncomment the following method after scaffolding Models
 public HospitalController(CureWellContext context, IMapper mapper)
 {
     //To Do: Implement appropriate logic
     _context = context;
     _mapper  = mapper;
     repObj   = new CureWellRepository(_context);
 }
 //Uncomment the following after scaffolding models
 public CureWellRepository(CureWellContext context)
 {
     //To Do: Implement appropriate logic
     _context = context;
 }
 public CureWellRepository()
 {
     //To Do: Implement appropriate logic
     _context = new CureWellContext();
 }
 public CureWellRepository()
 {
     Context = new CureWellContext();
 }