Пример #1
0
        public async Task <ReplyViewModel> LoadHome([FromHeader] string auth)
        {
            int IdUser = _service.CheckToken(auth);

            if (IdUser > 0)
            {
                reply = await _service.LoadHome(IdUser);
            }
            else
            {
                reply.result  = 3;
                reply.message = "Acceso no Permitido";
            }

            return(reply);
        }