// GET api/<controller>/5
        public async Task Get(string tokenCode)
        {
            var nhts  = new NHibernateITokenStore();
            var token = await nhts.FindByTokenAsync(tokenCode);

            if (token != null)
            {
                var his = new NHibernateITimeLogStore();
                await his.UpdateTimeLogStatus();
            }
        }
        // GET api/<controller>/5
        public async Task <IList <TimeLogs> > Get(string tokenCode)
        {
            var creaToken = false;             //for token manual creation
            var nhts      = new NHibernateITokenStore();

            if (creaToken)
            {
                var tkn   = Guid.NewGuid().ToString();
                var token = new TokenModel()
                {
                    UserName = "******",
                    Token    = tkn,
                    Status   = StatusType.Active
                };

                await nhts.CreateToken(token);
            }
            else
            {
                var token = await nhts.FindByTokenAsync(tokenCode);

                if (token == null)
                {
                    return(null);
                }
            }
            NHibernateITimeLogStore his = new NHibernateITimeLogStore();
            var search = await his.ReturnTimeLogsForUploadinAsync();

            //foreach (var timelog in search) {
            //	var log = (TimeLogs)timelog;
            //	log.Status = StatusType.Uploaded;
            //	await his.UpdateTimeLogs(log);
            //}

            return(search);
        }