Ejemplo n.º 1
0
    private int _SaveMapping(int CityAdminId)
    {
        int del = DataAccessLayer.ExecuteNonQuery("Delete from CityAdminCities Where CityAdminId=" + CityAdminId + " ");

        foreach (ListItem item in ddcb_City.Items)
        {
            if (item.Selected)
            {
                int CityId = Convert.ToInt32(item.Value);
                int res    = objAppAdmin.SaveCityAdminMapping(CityAdminId, CityId);
            }
        }
        return(0);
    }