// if mock repo object passed to constuctor used mock interface for unit testing
 public breweriesController(IbreweriesRepository smRepo)
 {
     this.db = smRepo;
 }
 // if no param passed to constuctor use ef repsoitoy & Dbcontext
 public breweriesController()
 {
     this.db = new EFBreweriesRepository();
 }