public AccountController(UserManager <AppUser> userManager, SignInManager <AppUser> signInManager, ITokenservice tokenservice, IMapper mapper)
 {
     _signInManager = signInManager;
     _userManager   = userManager;
     _mapper        = mapper;
     _tokenservice  = tokenservice;
 }
 public AccountController(DataContext context, ITokenservice tokenservice, IMapper mapper)
 {
     _mapper       = mapper;
     _tokenservice = tokenservice;
     _context      = context;
 }