public static string stringFromSex(TypeSex the_enum) { switch (the_enum) { case TypeSex.Sex_Female: return("Female"); case TypeSex.Sex_Male: return("Male"); default: Debug.Assert(false); return(null); } }
public void InsertRegistrosTypeSex(TypeSex model) { db.TypeSex.Add(model); db.SaveChanges(); }
protected override void handle_result(TypeSex result) { top.value.Add(result); }
protected override void handle_result(TypeSex result) { //@@@ Debug.Assert(!have_value); have_value = true; value = result; }
protected abstract void handle_result(TypeSex result);
public void setSex(TypeSex new_value) { flagHasSex = true; storeSex = new_value; }
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")); }