public void InsertRegistrosTypeHair(TypeHair model) { db.TypeHair.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")); }
public Hair(Hair hair) : base(hair) { this.color = hair.color; this.type = hair.type; }
public Hair(int id, Texture2D texture, Text description, Color color, TypeHair type) : base(id, texture, description) { this.color = color; this.type = type; }
public Hair(int id, Text description) : base(id, null, description) { this.color = new Color(); this.type = TypeHair.None; }
// Constructeur public Hair() : base() { this.color = new Color(); this.type = TypeHair.None; }