public static void AddTestData(PersonalBudgetContext context) { var testUser1 = new AppUser { Id = 1, UserName = "******", Password = "******", IsSuperUser = true }; var testUser2 = new AppUser { Id = 2, UserName = "******", Password = "******", IsSuperUser = false }; context.AppUsers.AddRange(testUser1, testUser2); context.SaveChanges(); }
private bool Save() { return(_context.SaveChanges() >= 0); }