public Drink(string name, uint call, uint price, string producer, TypeDrink drink) { this.Name = name; this.Call = call; this.Price = price; this.Producer = producer; this.type = drink; }
public void InsertRegistrosTypeDrink(TypeDrink model) { db.TypeDrink.Add(model); db.SaveChanges(); }
public JsonResult InsertRegisterTable(string tableName, string descripcion) { if (tableName == "TypeAtencion") { var model = new TypeAtencion() { Ide = descripcion, Atencion = descripcion }; types.InsertRegistrosTypeAtencion(model); } else if (tableName == "TypeContextura") { var model = new TypeContextura() { Ide = descripcion, Contextura = descripcion }; types.InsertRegistrosTypeContextura(model); } else if (tableName == "TypeCountry") { var model = new TypeCountry() { Ide = descripcion, Pais = descripcion }; types.InsertRegistrosTypeCountry(model); } else if (tableName == "TypeDepilacion") { var model = new TypeDepilacion() { Ide = descripcion, Depilacion = descripcion }; types.InsertRegistrosTypeDepilacion(model); } else if (tableName == "TypeDrink") { var model = new TypeDrink() { Ide = descripcion, Drink = descripcion }; types.InsertRegistrosTypeDrink(model); } else if (tableName == "TypeEscort") { var model = new TypeEscort() { Ide = descripcion, Categoria = descripcion }; types.InsertRegistrosTypeEscort(model); } else if (tableName == "TypeEyes") { var model = new TypeEyes() { Ide = descripcion, Ojos = descripcion }; types.InsertRegistrosTypeEyes(model); } else if (tableName == "TypeGirls") { var model = new TypeGirls() { Ide = descripcion, Type = descripcion }; types.InsertRegistrosTypeGirls(model); } else if (tableName == "TypeHair") { var model = new TypeHair() { Ide = descripcion, ColorCabello = descripcion }; types.InsertRegistrosTypeHair(model); } else if (tableName == "TypeNacionalidad") { var model = new TypeNacionalidad() { Ide = descripcion, Nacionalidad = descripcion }; types.InsertRegistrosTypeNacionalidad(model); } else if (tableName == "TypePiel") { var model = new TypePiel() { Ide = descripcion, Piel = descripcion }; types.InsertRegistrosTypePiel(model); } else if (tableName == "TypeServicesSex") { var model = new TypeServicesSex() { Ide = descripcion, Servicio = descripcion }; types.InsertRegistrosTypeServicesSex(model); } else if (tableName == "TypeSex") { var model = new TypeSex() { Ide = descripcion, Sexo = descripcion }; types.InsertRegistrosTypeSex(model); } else if (tableName == "TypeSmoke") { var model = new TypeSmoke() { Ide = descripcion, Smoke = descripcion }; types.InsertRegistrosTypeSmoke(model); } return(Json("Ok")); }