public static List <Terminate> GetTerminates(BadgingContext context) { List <Terminate> Terminates = new List <Terminate>() { new Terminate { UpId = "92323425", BadgeId = "2558MOH64", DateJobTermination = DateTime.ParseExact("06/27/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeTerminationDate = DateTime.ParseExact("07/08/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeReturned = true }, new Terminate { UpId = "92301885", BadgeId = "255MART7Z", DateJobTermination = DateTime.ParseExact("01/27/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeTerminationDate = DateTime.ParseExact("02/08/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeReturned = true }, new Terminate { UpId = "92379656", BadgeId = "255CAMP88", DateJobTermination = DateTime.ParseExact("09/27/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeTerminationDate = DateTime.ParseExact("10/03/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeReturned = true }, new Terminate { UpId = "92312294", BadgeId = "255SMT21A", DateJobTermination = DateTime.ParseExact("03/21/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeTerminationDate = DateTime.ParseExact("10/01/2018", "MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture), BadgeReturned = false } }; context.SaveChanges(); return(Terminates); }
public static List <Employee> GetEmployees(BadgingContext context) { List <Employee> Employees = new List <Employee>() { new Employee { EmployeeId = "92323425", LName = "Mohammad", FName = "Samual", BadgeId = context.Badges.Find("2558MOH64").BadgeId }, new Employee { EmployeeId = "92301885", LName = "Martenez", FName = "Juan", BadgeId = context.Badges.Find("255MART7Z").BadgeId }, new Employee { EmployeeId = "92379656", LName = "Campango", FName = "Boyette", BadgeId = context.Badges.Find("255CAMP88").BadgeId }, new Employee { EmployeeId = "92312294", LName = "Smith", FName = "Jessica", BadgeId = context.Badges.Find("255SMT21A").BadgeId } }; context.SaveChanges(); return(Employees); }