Exemplo n.º 1
0
        public List <ZonaFl.Persistence.Entities.AspNetUsers> GetUsers()
        {
            List <ZonaFl.Persistence.Entities.AspNetUsers> users = new List <ZonaFl.Persistence.Entities.AspNetUsers>();
            List <RegisterBindingModel> usersmodel = new List <RegisterBindingModel>();
            SUser suser = new SUser();

            users = suser.GetAllUsers();

            return(users);
        }
Exemplo n.º 2
0
        public List <ZonaFl.Persistence.Entities.AspNetUsers> GetSuspendUser(string Email, string Estado)
        {
            SUser suser = new SUser();
            var   user  = suser.GetUserByEmail(Email);

            if (Estado.IndexOf("Suspendido") == -1)
            {
                user.Status = State.Suspendido.ToString();
            }
            else
            {
                user.Status = State.Activo.ToString();
            }

            suser.UpdateUser(user);
            List <ZonaFl.Persistence.Entities.AspNetUsers> users = new List <ZonaFl.Persistence.Entities.AspNetUsers>();
            List <RegisterBindingModel> usersmodel = new List <RegisterBindingModel>();

            users = suser.GetAllUsers();
            return(users);
        }