public static bool deleteUser(string id)
        {
            string    action     = "DE";
            CTL_USERS oCTL_USERS = new CTL_USERS();

            oCTL_USERS.Id = Convert.ToInt32(id);
            return(UsersLN.crudUser(oCTL_USERS, action));
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         UsersLN.getRol(ref dpl_Role);
         UsersLN.getRol(ref dpl_rollAdd);
         UsersLN.getStatus(ref dpl_status);
     }
 }
        public static bool updateUser(string id, string nombre, string apellidoP, string apellidoM, string correo, string nombreUsuario, string idRol, string idStatus)
        {
            string    action     = "UP";
            CTL_USERS oCTL_USERS = new CTL_USERS();

            oCTL_USERS.Id         = Convert.ToInt32(id);
            oCTL_USERS.Name       = nombre;
            oCTL_USERS.LastName   = apellidoP;
            oCTL_USERS.Surname    = apellidoM;
            oCTL_USERS.Email      = correo;
            oCTL_USERS.UserName   = nombreUsuario;
            oCTL_USERS.IdRole     = Convert.ToInt32(idRol);
            oCTL_USERS.statusUser = Convert.ToInt32(idStatus);
            return(UsersLN.crudUser(oCTL_USERS, action));
        }
        public static bool addteUser(string nombre, string apellidoP, string apellidoM, string correo, string nombreUsuario, string idRol, string password)
        {
            string    action     = "IN";
            CTL_USERS oCTL_USERS = new CTL_USERS();

            oCTL_USERS.Name     = nombre;
            oCTL_USERS.LastName = apellidoP;
            oCTL_USERS.Surname  = apellidoM;
            oCTL_USERS.Email    = correo;
            oCTL_USERS.UserName = nombreUsuario;
            oCTL_USERS.IdRole   = Convert.ToInt32(idRol);
            oCTL_USERS.Password = password;
            oCTL_USERS.Parent   = 1;
            oCTL_USERS.WebPage  = "gestionarUsuarios.apsx";
            return(UsersLN.crudUser(oCTL_USERS, action));
        }
 public static List <CTL_USERS> getUsers(string nombre, string apellidoP, string apellidoM, string correo)
 {
     return(UsersLN.getUsers(nombre, apellidoP, apellidoM, correo));
 }