예제 #1
0
        public EditModel(IgnisMercado.Models.ApplicationContext context)
        {
            _context        = context;
            this.NivelesDif = new List <SelectListItem>();

            for (int i = 0; i < IgnisData.NivelesDeDificultad.Length; i++)
            {
                this.NivelesDif.Add(new SelectListItem {
                    Value = i.ToString(), Text = IgnisData.NivelesDeDificultad[i]
                });
            }
        }
예제 #2
0
 public CreateModel(IgnisMercado.Models.ApplicationContext context)
 {
     _context = context;
 }
예제 #3
0
 public DetailsModel(IgnisMercado.Models.ApplicationContext context)
 {
     _context = context;
 }
예제 #4
0
 public IndexModel(IgnisMercado.Models.ApplicationContext context)
 {
     _context = context;
 }
예제 #5
0
        public IndexModel(IgnisMercado.Models.ApplicationContext context, UserManager <ApplicationUser> userManager)
        {
            _context = context;

            _userManager = userManager;
        }