Beispiel #1
0
        public override bool IsValid(object value)
        {
            ItlaTwitter4Context context = new ItlaTwitter4Context();

            var ListUsuario = context.Usuario.Select(x => x.Usuario1).ToList();

            if (ListUsuario.Contains(value))
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
 public PrincipalController(ItlaTwitter4Context context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }
Beispiel #3
0
 public EdicionController(ItlaTwitter4Context context, IMapper mapper)
 {
     _context = context;
     _mapper  = mapper;
 }