//public string GetRecentLinks(string username)
        //{
        //    var data = _repo.GetRecentLinks(username);

        //    string jsonMenu = JsonConvert.SerializeObject(data, Formatting.Indented);
        //    return jsonMenu;
        //}


        //public async Task<int> AddRecentLink(RecentLinksDto recentDto, CancellationToken cancellationToken)
        //{
        //    var model = _mapper.Map<RecentLinks>(recentDto);
        //    model.CreatedBy = recentDto.CreatedBy;
        //    model.ModifiedBy = recentDto.CreatedBy;
        //    await _repo.AddRecentLink(model, cancellationToken).ConfigureAwait(false);

        //    return 1;
        //}
        public async Task <IEnumerable <GenericResult> > GetUser(string username)
        {
            return(await _repo.GetUsers(username).ConfigureAwait(false));
        }