public AccountService() { _farmerRepository = new FarmerRepository(); _authService = new AuthService(new AppContext()); }
public TokenAuthorizeAttribute() { _authService = new AuthService(new AppContext()); Role = ""; }