public AssociatesController(ApplicationDbContext context, AssociateRepository associate,
                             IHostingEnvironment host)
 {
     _context   = context;
     Repository = associate;
     this.host  = host;
 }
 public AssociatesController()
 {
     _associateRepository = new AssociateRepository();
     _userRepository      = new UserRepository();
 }