public CheckoutController(N7EmporiumContext context, IEmailSender emailSender, IBraintreeGateway braintreeGateway, IClient <SmartyStreets.USStreetApi.Lookup> usStreetClient) { _context = context; _emailSender = emailSender; _braintreeGateway = braintreeGateway; _usStreetClient = usStreetClient; }
public ArmorController(N7EmporiumContext context) { _context = context; //USING ENTITY FRAMEOWRK TO INSERT DATA if (context.Armors.Count() == 0) { //context.Ships.Add(new Ships { Name = "TestAddShip", Description = "Desc", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought" }); //Even though I'm adding these to the context, they don't get added to the database just yet! EF wants to create batches of commands to run to reduce "chatter". //Ask Joe if this is how I'd go about adding all my data according to his recommended approach - yup! Don't even need to delete the DB data. context.Armors.Add(new Armor { Name = "Ariake Technologies Armor", Description = "Armor ideally suited for rough terrain.", Price = 205670, Weight = 62, Type = "Human", Dexterity = 8, KineticBarrier = false, MediGelCapacity = 4, Image = "https://vignette.wikia.nocookie.net/masseffect/images/e/e2/ME3_ariake_technologies_set.png/revision/latest?cb=20120315001407" }); context.Armors.Add(new Armor { Name = "Blood Dragon Armor", Description = "Sought after by the most infamous bounty hunters in the galaxy, this armor can take a beating.", Price = 245000, Weight = 81, Type = "Human", Dexterity = 6, KineticBarrier = true, MediGelCapacity = 6, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/9c/ME3_Blood_Dragon_Armor.png/revision/latest?cb=20120314192826" }); context.Armors.Add(new Armor { Name = "Cerberus Nightmare Armor", Description = "Known for its common use by assassins, this armor allows for maximum dexterity and swiftness due to its lightweight design.", Price = 228220, Weight = 42, Type = "Human", Dexterity = 10, KineticBarrier = true, MediGelCapacity = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/6/67/Cerberus_shade.jpg/revision/latest?cb=20130308134524" }); context.Armors.Add(new Armor { Name = "Collector Armor", Description = "Constructed by the Collectors, no Milky Way Galaxy manufacturer has been able to synthesize the main material used in this armor.", Price = 267800, Weight = 80, Type = "Human", Dexterity = 5, KineticBarrier = true, MediGelCapacity = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/a/ac/ME3_Collector_Armor.png/revision/latest?cb=20120314183021" }); context.Armors.Add(new Armor { Name = "Terminus Assault Armor", Description = "Often jokingly referred to as 'Tron Armor', the Terminus Assault Armor works well with biotics.", Price = 233980, Weight = 74, Type = "Human", Dexterity = 7, KineticBarrier = false, MediGelCapacity = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/2/23/ME3_Terminus_Assault_Armor.png/revision/latest?cb=20120314195928" }); context.Armors.Add(new Armor { Name = "Roskenov Materials Armor", Description = "Styled for heavy infantry and brute force.", Price = 185000, Weight = 82, Type = "Human", Dexterity = 5, KineticBarrier = true, MediGelCapacity = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/d/d5/ME3_rosenkov_materials_set.png/revision/latest?cb=20120315000059" }); context.Armors.Add(new Armor { Name = "N7 Armor", Description = "Standard issue lightweight Systems Alliance infantry armor.", Price = 172340, Weight = 60, Type = "Human", Dexterity = 8, KineticBarrier = false, MediGelCapacity = 4, Image = "https://vignette.wikia.nocookie.net/masseffect/images/d/df/ME3_N7_Armor.png/revision/latest?cb=20120314160514" }); context.Armors.Add(new Armor { Name = "Inferno Armor", Description = "With technology borrowed from the Krogan, this armor allows individuals to withstand excessive heat typically encountered on volcanically active planets.", Price = 200890, Weight = 75, Type = "Human", Dexterity = 7, KineticBarrier = true, MediGelCapacity = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/96/ME3_Inferno_Armor.png/revision/latest?cb=20120314170848" }); context.Armors.Add(new Armor { Name = "Cerberus Armor", Description = "Standard issue Cerberus armor.", Price = 199850, Weight = 70, Type = "Human", Dexterity = 8, KineticBarrier = true, MediGelCapacity = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/3/35/ME3_Cerberus_Assault_Armor.png/revision/latest?cb=20120314164810" }); context.Armors.Add(new Armor { Name = "Armax Arsenal Armor", Description = "Developed by Armax Arsenal, the inspiration for this set can be derived from the Dragon Blood Armor.", Price = 212350, Weight = 79, Type = "Human", Dexterity = 9, KineticBarrier = true, MediGelCapacity = 2, Image = "https://vignette.wikia.nocookie.net/masseffect/images/0/0e/ME3_armax_arsenal_set.png/revision/latest?cb=20120315002807" }); context.Armors.Add(new Armor { Name = "Cerberus Ajax Armor", Description = "A heavily modified version of the standard Cerberus Armor, Ajax Armor is suited for all situations (pun intended)", Price = 245780, Weight = 77, Type = "Human", Dexterity = 7, KineticBarrier = true, MediGelCapacity = 4, Image = "https://vignette.wikia.nocookie.net/masseffect/images/f/f8/ME3_Cerberus_Ajax_Armor.png/revision/latest?cb=20121123062420" }); context.Armors.Add(new Armor { Name = "Kassa Fabrication Armor", Description = "Standard issue Kassa infantry armor.", Price = 205780, Weight = 70, Type = "Human", Dexterity = 7, KineticBarrier = false, MediGelCapacity = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/1/1d/ME3_kassa_fabrication_set.png/revision/latest?cb=20120314235118" }); context.SaveChanges(); } }
public ShipsController(N7EmporiumContext context) { _context = context; //USING ENTITY FRAMEOWRK TO INSERT DATA if (context.Ships.Count() == 0) { //context.Ships.Add(new Ships { Name = "TestAddShip", Description = "Desc", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought" }); //Even though I'm adding these to the context, they don't get added to the database just yet! EF wants to create batches of commands to run to reduce "chatter". //Ask Joe if this is how I'd go about adding all my data according to his recommended approach context.Ships.Add(new Ship { Name = "Alarei", Description = "A ship used by Admiral Rael-Zorah to carry out his studies on Geth countermeasures. Overtaken by reactivated Geth units in 2185.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://i.redd.it/v8c4o2tlyg7y.png" }); context.Ships.Add(new Ship { Name = "Normandy SR-2", Description = "A Cerberus frigate based on the SSV Normandy SR-1. Claimed, assigned the SSV prefix, and refitted by the Alliance in 2186. Commanded by Commander Shepard.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://vignette.wikia.nocookie.net/masseffect/images/b/b4/Codex_Normandy_SR-2_%28ME3%29.png/revision/latest?cb=20120320202410" }); context.Ships.Add(new Ship { Name = "Penumbra Apex", Description = "The flagship of the Prothean Empire's navy.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://i.pinimg.com/originals/8a/0d/a8/8a0da89d17b2a491e4f19aadd50ab437.jpg" }); context.Ships.Add(new Ship { Name = "Quarian Envoy Ship", Description = "A quarian diplomatic frigate of advanced design sent to meet Commander Shepard in the Dholen system in 2186.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/intermediary/f/14742e20-ac3e-4580-b025-163d5b8c6575/dba5sw1-2bb790bc-ba12-4a84-b2aa-bc9407f5f84f.jpg/v1/fill/w_1131,h_707,q_70,strp/envoy_ship_by_euderion_dba5sw1-pre.jpg" }); context.Ships.Add(new Ship { Name = "Periphona", Description = "A survey vessel from the Leusinia ark. Flight recorder ended up on the frozen wastes of Voeld.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://cdn.segmentnext.com/wp-content/uploads/2017/03/7-1.jpg" }); context.Ships.Add(new Ship { Name = "Destiny Ascension", Description = "The most powerful warship built by the asari and flagship of the Citadel Fleet in 2183. Spared during the Battle of the Citadel. Commanded by Matriarch Lidanya.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://vignette.wikia.nocookie.net/masseffect/images/e/e8/WA_AsariCruiser.png/revision/latest?cb=20120326173630" }); context.Ships.Add(new Ship { Name = "MSV Icarus", Description = "A freighter chartered by the Project Scarab team of Task Force Aurora, headed by Dr. Ann Bryson. The Icarus was designed for long-range FTL travel.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://www.wallpaperup.com/uploads/wallpapers/2014/01/24/236168/e587711e9fd72a116936ee1222472adb-700.jpg" }); context.Ships.Add(new Ship { Name = "Tempest", Description = "The only one left in existence, the Andromeda Initiative Survey Ship is designed for a Pathfinder. Lightweight and lacking weapons, it relies on an IES stealth system and kinetic barriers for defense. Commanded by Pathfinder Ryder.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://www.rockpapershotgun.com/images/17/jan/tempest1.jpg/RPSS/resize/760x-1/format/jpg/quality/70" }); context.Ships.Add(new Ship { Name = "Kwunu", Description = "The Vol Protectorate's sole dreadnought, named for the volus who negotiated client-race status with the turians. Its construction was funded by the Elkoss Combine.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://vignette.wikia.nocookie.net/masseffectships/images/1/19/Images_%282%29.jpg/revision/latest?cb=20120727103452" }); context.Ships.Add(new Ship { Name = "Harbinger", Description = "Believed to be the oldest and largest Reaper. Instigated the Collector attacks on human colonies in 2185, and participated in the Reaper invasion of Earth in 2186.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "http://3.bp.blogspot.com/-BkyxFXcz77w/T2YgEgA6oJI/AAAAAAAABkw/AM_-oaqRZRE/s640/Mass-Effect-3-Earth-Reaper.jpg" }); context.Ships.Add(new Ship { Name = "Derelict Repaer", Description = " A Reaper in orbit above Mnemosyne that was disabled 37 million years ago. In 2185, Commander Shepard retrieves the Reaper's IFF.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://i.pinimg.com/originals/c3/19/f9/c319f9003e8e034427755e3ee2b8751f.jpg" }); context.Ships.Add(new Ship { Name = "Elbrus", Description = "Flagship of a Cerberus fleet sent to Omega in 2186. Commanded by Oleg Petrovsky.", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought", Image = "https://cdn.player.one/sites/player.one/files/styles/lg/public/2017/03/23/mass-effect-spaceship.jpg" }); context.SaveChanges(); //The context.SaveChanes() method is the "sync" operation. It's saying go ahead and persist these records! } }
public WeaponsController(N7EmporiumContext context) { _context = context; //USING ENTITY FRAMEOWRK TO INSERT DATA if (context.Weapons.Count() == 0) { //context.Ships.Add(new Ships { Name = "TestAddShip", Description = "Desc", ArmorType = "Ablative Armor", Ftl = false, KineticBarrier = true, Price = 5400600, Type = "Dreadnought" }); //Even though I'm adding these to the context, they don't get added to the database just yet! EF wants to create batches of commands to run to reduce "chatter". //Ask Joe if this is how I'd go about adding all my data according to his recommended approach - yup! Don't even need to delete the DB data. context.Weapons.Add(new Weapon { Name = "Cerberus Harrier", Description = "Fully automatic assault rifle by Cerberus Corps.", Price = 50000, Weight = 14, Type = "Assault", Range = 40, ClipSize = 50, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/0/0d/ME3_Cerberus_Harrier.png/revision/latest?cb=20120530214013" }); context.Weapons.Add(new Weapon { Name = "Chakram Launcher", Description = "Fully automatic assault rifle by Ama-Lur Equipment.", Price = 75000, Weight = 22, Type = "Assault", Range = 60, ClipSize = 8, FireRate = 1, Image = "https://vignette.wikia.nocookie.net/masseffect/images/5/56/ME3_Chakram_Assault_Rifle.png/revision/latest?cb=20120317175958" }); context.Weapons.Add(new Weapon { Name = "Collector Assault Rifle", Description = "Fully automatic assault rifle with Collector-infused technology.", Price = 120000, Weight = 12, Type = "Assault", Range = 35, ClipSize = 60, FireRate = 20, Image = "https://vignette.wikia.nocookie.net/masseffect/images/f/f8/ME3_Collector_Assault_Rifle.png/revision/latest?cb=20120317180554" }); context.Weapons.Add(new Weapon { Name = "Geth Pulse Rifle", Description = "Main rifle utilized by Geth infantry, developed by Geth Armory.", Price = 30000, Weight = 10, Type = "Assault", Range = 25, ClipSize = 40, FireRate = 15, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/92/ME3_Geth_Pulse_Assault_Rifle.png/revision/latest?cb=20120317181047" }); context.Weapons.Add(new Weapon { Name = "Geth Spitfire", Description = "", Price = 60000, Weight = 16, Type = "Assault", Range = 45, ClipSize = 50, FireRate = 15, Image = "https://vignette.wikia.nocookie.net/masseffect/images/1/1d/ME3_Geth_Spitfire_Heavy_Weapon.png/revision/latest?cb=20120317194711" }); context.Weapons.Add(new Weapon { Name = "M7 Lancer", Description = "", Price = 50000, Weight = 11, Type = "Assault", Range = 40, ClipSize = 40, FireRate = 15, Image = "https://vignette.wikia.nocookie.net/masseffect/images/c/c6/ME3_Lancer_AS.png/revision/latest?cb=20130227094559" }); context.Weapons.Add(new Weapon { Name = "M8 Avenger", Description = "", Price = 33000, Weight = 15, Type = "Assault", Range = 30, ClipSize = 100, FireRate = 13, Image = "https://vignette.wikia.nocookie.net/masseffect/images/2/29/ME3_Avenger_Assault_Rifle.png/revision/latest?cb=20120317171316" }); context.Weapons.Add(new Weapon { Name = "M55 Argus", Description = "", Price = 151000, Weight = 18, Type = "Assault", Range = 50, ClipSize = 150, FireRate = 23, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/95/ME3_Argus_Assault_Rifle.png/revision/latest?cb=20120317173420" }); context.Weapons.Add(new Weapon { Name = "N7 Valkyrie", Description = "", Price = 44500, Weight = 10, Type = "Assault", Range = 50, ClipSize = 40, FireRate = 8, Image = "https://vignette.wikia.nocookie.net/masseffect/images/0/08/ME3_N7_Valkyrie_Assault_Rifle.png/revision/latest?cb=20120317181450" }); context.Weapons.Add(new Weapon { Name = "M96 Mattock", Description = "", Price = 67000, Weight = 11, Type = "Assault", Range = 38, ClipSize = 28, FireRate = 27, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/93/ME3_Mattock_Assault_Rifle.png/revision/latest?cb=20120317182842" }); context.Weapons.Add(new Weapon { Name = "Black Widow", Description = "", Price = 182000, Weight = 18, Type = "Sniper Rifle", Range = 200, ClipSize = 12, FireRate = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/4/44/ME3_Black_Widow_Sniper_Rifle.png/revision/latest?cb=20120317191926" }); context.Weapons.Add(new Weapon { Name = "Collector Sniper Rifle", Description = "", Price = 210000, Weight = 22, Type = "Sniper Rifle", Range = 212, ClipSize = 15, FireRate = 2, Image = "https://vignette.wikia.nocookie.net/masseffect/images/4/40/ME3_Collector_Sniper_Rifle.png/revision/latest?cb=20121009204028" }); context.Weapons.Add(new Weapon { Name = "Javelin", Description = "", Price = 222000, Weight = 25, Type = "Sniper Rifle", Range = 40, ClipSize = 8, FireRate = 1, Image = "https://vignette.wikia.nocookie.net/masseffect/images/7/7b/ME3_Javelin_Sniper_Rifle.png/revision/latest?cb=20120317192031" }); context.Weapons.Add(new Weapon { Name = "Kishock Harpoon Gun", Description = "", Price = 100000, Weight = 16, Type = "Sniper Rifle", Range = 170, ClipSize = 10, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/d/db/ME3_Kishock_Harpoon_Gun.png/revision/latest?cb=20120411201323" }); context.Weapons.Add(new Weapon { Name = "Krysae Sniper Rifle", Description = "", Price = 183500, Weight = 21, Type = "Sniper Rifle", Range = 242, ClipSize = 15, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/2/2f/ME3_Krysae_Sniper_Rifle.png/revision/latest?cb=20120530214006" }); context.Weapons.Add(new Weapon { Name = "M13 Raptor", Description = "", Price = 178300, Weight = 19, Type = "Sniper Rifle", Range = 238, ClipSize = 10, FireRate = 4, Image = "https://vignette.wikia.nocookie.net/masseffect/images/7/70/ME3_Raptor_Sniper_Rifle.png/revision/latest?cb=20120317191426" }); context.Weapons.Add(new Weapon { Name = "M29 Incisor", Description = "", Price = 165780, Weight = 23, Type = "Sniper Rifle", Range = 226, ClipSize = 10, FireRate = 4, Image = "https://vignette.wikia.nocookie.net/masseffect/images/7/70/ME3_Raptor_Sniper_Rifle.png/revision/latest?cb=20120317191426" }); context.Weapons.Add(new Weapon { Name = "M92 Mantis", Description = "", Price = 177450, Weight = 18, Type = "Sniper Rifle", Range = 205, ClipSize = 20, FireRate = 7, Image = "https://vignette.wikia.nocookie.net/masseffect/images/7/7b/ME3_Mantis_Sniper_Rifle.png/revision/latest?cb=20120317191621" }); context.Weapons.Add(new Weapon { Name = "Acolyte", Description = "", Price = 85450, Weight = 6, Type = "Heavy Pistol", Range = 40, ClipSize = 20, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/b/b9/ME3_Acolyte_Pistol.png/revision/latest?cb=20120714073045" }); context.Weapons.Add(new Weapon { Name = "Arc Pistol", Description = "", Price = 88900, Weight = 6, Type = "Heavy Pistol", Range = 40, ClipSize = 20, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/e/e8/ME3_Arc_Heavy_Pistol.png/revision/latest?cb=20120317185747" }); context.Weapons.Add(new Weapon { Name = "m3 Predator", Description = "", Price = 72340, Weight = 4, Type = "Heavy Pistol", Range = 30, ClipSize = 18, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/c/c8/ME3_Predator_Heavy_Pistol.png/revision/latest?cb=20120317185446" }); context.Weapons.Add(new Weapon { Name = "M5 Phalanx", Description = "", Price = 78450, Weight = 4, Type = "Heavy Pistol", Range = 45, ClipSize = 18, FireRate = 7, Image = "https://vignette.wikia.nocookie.net/masseffect/images/a/ae/ME3_Phalanx_Heavy_Pistol.png/revision/latest?cb=20120317185535" }); context.Weapons.Add(new Weapon { Name = "M6 Carnifex", Description = "", Price = 65780, Weight = 7, Type = "Heavy Pistol", Range = 45, ClipSize = 18, FireRate = 7, Image = "https://vignette.wikia.nocookie.net/masseffect/images/8/88/ME3_Carnifex_Heavy_Pistol.png/revision/latest?cb=20120317185613" }); context.Weapons.Add(new Weapon { Name = "M77 Paladin", Description = "", Price = 88940, Weight = 8, Type = "Heavy Pistol", Range = 45, ClipSize = 12, FireRate = 6, Image = "https://vignette.wikia.nocookie.net/masseffect/images/4/43/ME3_Paladin_Heavy_Pistol.png/revision/latest?cb=20120317185630" }); context.Weapons.Add(new Weapon { Name = "M358 Talon", Description = "", Price = 90000, Weight = 5, Type = "Heavy Pistol", Range = 45, ClipSize = 20, FireRate = 8, Image = "https://vignette.wikia.nocookie.net/masseffect/images/9/99/ME3_Talon_Heavy_Pistol.png/revision/latest?cb=20120317185721" }); context.Weapons.Add(new Weapon { Name = "N7 Eagle", Description = "", Price = 72350, Weight = 7, Type = "Heavy Pistol", Range = 45, ClipSize = 20, FireRate = 8, Image = "https://vignette.wikia.nocookie.net/masseffect/images/0/01/ME3_N7_Eagle_Heavy_Pistol.png/revision/latest?cb=20120317185811" }); context.Weapons.Add(new Weapon { Name = "M11 Suppressor", Description = "", Price = 72350, Weight = 4, Type = "Heavy Pistol", Range = 45, ClipSize = 12, FireRate = 8, Image = "https://vignette.wikia.nocookie.net/masseffect/images/8/84/ME3_Suppressor.png/revision/latest?cb=20130227094606" }); context.Weapons.Add(new Weapon { Name = "Scorpion", Description = "", Price = 112000, Weight = 4, Type = "Heavy Pistol", Range = 52, ClipSize = 21, FireRate = 8, Image = "https://vignette.wikia.nocookie.net/masseffect/images/4/40/ME3_Scorpion_Heavy_Pistol.png/revision/latest?cb=20120317185843" }); context.Weapons.Add(new Weapon { Name = "M98 Widow", Description = "", Price = 180310, Weight = 14, Type = "Sniper Rifle", Range = 188, ClipSize = 16, FireRate = 5, Image = "https://vignette.wikia.nocookie.net/masseffect/images/1/1d/ME3_Widow_Sniper_Rifle.png/revision/latest?cb=20120317191850" }); context.Weapons.Add(new Weapon { Name = "N7 Valiant", Description = "", Price = 118960, Weight = 14, Type = "Sniper Rifle", Range = 178, ClipSize = 11, FireRate = 3, Image = "https://vignette.wikia.nocookie.net/masseffect/images/1/14/ME3_N7_Valiant_Sniper_Rifle.png/revision/latest?cb=20120317192204" }); context.SaveChanges(); } }
public ReceiptController(N7EmporiumContext context) { _context = context; }
public CartsController(N7EmporiumContext context) { _context = context; }