public LaptopService(LaptopRepository repository)
 {
     this.repository = repository;
 }
 public AdministratorController()
 {
     repository = new SqlDataAccess.SqlLaptopRespository("connectionString");
 }
        public HomeController(LaptopRepository repository)
        {
            if (repository == null) throw new Exception("HomeController requires a repository");

            this.repository = repository;
        }