Ejemplo n.º 1
0
        public JsonResult DeleteRegisterTable(string tableName, int id)
        {
            if (tableName == "TypeAtencion")
            {
                types.DeleteRegistrosTypeAtencion(id);
            }
            else if (tableName == "TypeContextura")
            {
                types.DeleteRegistrosTypeContextura(id);
            }
            else if (tableName == "TypeCountry")
            {
                types.DeleteRegistrosTypeCountry(id);
            }
            else if (tableName == "TypeDepilacion")
            {
                types.DeleteRegistrosTypeDepilacion(id);
            }
            else if (tableName == "TypeDrink")
            {
                types.DeleteRegistrosTypeAtencion(id);
            }
            else if (tableName == "TypeEscort")
            {
                types.DeleteRegistrosTypeEscort(id);
            }
            else if (tableName == "TypeEyes")
            {
                types.DeleteRegistrosTypeEyes(id);
            }
            else if (tableName == "TypeGirls")
            {
                types.DeleteRegistrosTypeGirls(id);
            }
            else if (tableName == "TypeHair")
            {
                types.DeleteRegistrosTypeHair(id);
            }
            else if (tableName == "TypeNacionalidad")
            {
                types.DeleteRegistrosTypeNacionalidad(id);
            }
            else if (tableName == "TypePiel")
            {
                types.DeleteRegistrosTypePiel(id);
            }
            else if (tableName == "TypeServicesSex")
            {
                types.DeleteRegistrosTypeServicesSex(id);
            }
            else if (tableName == "TypeSex")
            {
                types.DeleteRegistrosTypeSex(id);
            }
            else if (tableName == "TypeSmoke")
            {
                types.DeleteRegistrosTypeSmoke(id);
            }


            return(Json("Ok"));
        }