Exemple #1
0
        public JsonResult GetRegisterTable(string tableName)
        {
            var registros = new List <AdmTablesModel>();

            if (tableName == "TypeAtencion")
            {
                registros = types.GetRegistrosTypeAtencion();
            }
            else if (tableName == "TypeContextura")
            {
                registros = types.GetRegistrosTypeContextura();
            }
            else if (tableName == "TypeCountry")
            {
                registros = types.GetRegistrosTypeCountry();
            }
            else if (tableName == "TypeDepilacion")
            {
                registros = types.GetRegistrosTypeDepilacion();
            }
            else if (tableName == "TypeDrink")
            {
                registros = types.GetRegistrosTypeAtencion();
            }
            else if (tableName == "TypeEscort")
            {
                registros = types.GetRegistrosTypeEscort();
            }
            else if (tableName == "TypeEyes")
            {
                registros = types.GetRegistrosTypeEyes();
            }
            else if (tableName == "TypeGirls")
            {
                registros = types.GetRegistrosTypeGirls();
            }
            else if (tableName == "TypeHair")
            {
                registros = types.GetRegistrosTypeHair();
            }
            else if (tableName == "TypeNacionalidad")
            {
                registros = types.GetRegistrosTypeNacionalidad();
            }
            else if (tableName == "TypePiel")
            {
                registros = types.GetRegistrosTypePiel();
            }
            else if (tableName == "TypeServicesSex")
            {
                registros = types.GetRegistrosTypeServicesSex();
            }
            else if (tableName == "TypeSex")
            {
                registros = types.GetRegistrosTypeSex();
            }
            else if (tableName == "TypeSmoke")
            {
                registros = types.GetRegistrosTypeSmoke();
            }


            return(Json(registros));
        }