public usersController(usercontext context) { _context = context; standardNotificationHubConfiguration = new NotificationHubConfiguration(); standardNotificationHubConfiguration.ConnectionString = "Endpoint=sb://ruoqianxu.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=GQFrRQ/CJE0SA9gpp1+tB6YW09MvaiLs90r5x54X/AI="; standardNotificationHubConfiguration.HubName = "PushNotificationDemoIct638"; }
public ActionResult Login(LoginModel log) { usercontext us = new usercontext(); us.logins.Add(log); us.SaveChanges(); return(View()); }
public usersController(usercontext context) { _context = context; }
public static int findlast() { usercontext db = new usercontext(); return(Convert.ToInt32(db.Database.SqlQuery <decimal>("SELECT IDENT_CURRENT('order')").First())); }