public bool crear(OlSoftwareDbContext dbi) { db = dbi; if (db.Clientes.Where(ss => ss.idcard == 901293).FirstOrDefault() != null) { return(false); } int idcI = 901293; int idc = idcI; int iphone = 9120334; addcliente(idc++, "Juan", "Perez", iphone); addcliente(idc++, "Carlos", "Payares", iphone + 1521); addcliente(idc++, "Lisa", "Palomino", iphone + 1521); addcliente(idc++, "Carmen", "Tellez", iphone + 1521); addcliente(idc++, "Alicia", "Keys", iphone + 1521); addcliente(idc++, "Jose", "Canales", iphone + 1521); addcliente(idc++, "Ivan", "ramirez", iphone + 1521); addcliente(idc++, "Luis", "Costa", iphone + 1521); addcliente(idc++, "Leonor", "Ospino", iphone + 1521); addcliente(idc++, "Juan", "Zuleta", iphone + 1521); // // int nhours = 1440; int price = 500000; addproyecto(idcI, "Frankester", price * ((nhours++) * price), nhours); addproyecto(idcI++, "Chelser", price * ((nhours++) * price), nhours); addproyecto(idcI + 3, "Bavarina", price * ((nhours++) * price), nhours); addproyecto(idcI + 6, "Postal", price * ((nhours++) * price), nhours); addproyecto(idcI + 4, "Ice&Fuits", price * ((nhours++) * price), nhours); addproyecto(idcI + 1, "ShopCenter", price * ((nhours++) * price), nhours); addproyecto(idcI + 8, "Friendsplus", price * ((nhours++) * price), nhours); addproyecto(idcI + 7, "Matchs&more", price * ((nhours++) * price), nhours); addproyecto(idcI + 6, "Clicks", price * ((nhours++) * price), nhours); addproyecto(idcI + 5, "meatnow", price * ((nhours++) * price), nhours); // // db.SaveChanges(); return(true); }
public HomeController(Models.OlSoftwareDbContext context) { db = context; }